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.


Everybody can read the DecSoft support forum for learning purposes, however only DecSoft customers can post new threads. Purchase one or more licenses of some DecSoft products in order to give this and other benefits.

This website uses some useful cookies to store your preferences.

I agree. Hide this note. Give me more information.