Maybe you should look at RBScript. If you set up a proper context
class containing those functions, you could use RBScript to call them
'by name' because in RBScript you load the source as text, compile and
execute. Still not what you were originally asking for, but a possible
alternative.
Javascript and scirpt in general seems to be wiser on this ;-))
I'll look into that
But looking at your example I'm really not sure that it's all that
useful at any rate, since all you're trying to do is adjust/compact
your syntax. The simplest thing would be to just add a pair of Set/Get
methods to your myObject which store the values a dictionary.
For Each Field in myRecord
myObject.Set(Field.Name, Field.Value)
Next
Yeah, that's a possibility. I could easily create a baseObject with a
Dictionary and subclass it in the others.
Instead of me.property, I can just get it out of the Dictionary.
Since the dictionary is a huge improvement over the collection, this
would work
Tnx
_______________________________________________
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|