Replacement of variable name with variable value


Guest

Hi David!
I sometimes get a replacement when assigning a value to an entity...
ie:

Will result in an entity called TestObj.28 = 28
Rather than TestObj.TotalRecords = 28

Any way to fix this - at the moment I do


which is a bit clunky I think..


Guest

Don't worry - I solved it.
However, this could drive one nuts if you don't know about it..

Seems like


should be the preferred way to do this?

The variables/entities does not need to be created either..


..will work, even though I never did an ObjectSetProp on SmileyFace

Cheers,
Fakie


DecSoft

Hello fakie,

Your second post contains without doubt code that may works, but than appear not acceptable. I think you must choose the first approach (use another variable name) when you get this kind of issue.


Todo el mundo puede leer el foro de soporte de DecSoft para aprender del mismo, sin embargo, sólo los clientes de DecSoft pueden abrir nuevos hilos. Compre una o más licencias de productos de DecSoft y obtendrá este y otros beneficios.

Este sitio utiliza "cookies" útiles para almacenar sus preferencias.

Bien. Ocultar esta nota. Obtener más información.