[Gambas-user] New feature in /trunk
Benoît Minisini
gambas at ...1...
Wed May 27 00:55:04 CEST 2009
Hi,
I just added a new feature in the development version: the Assign() function.
It is like Eval(), except that the expression can be an assignment. It returns
the assigned value.
For example:
Dim hCtrl As Control ' Any control
Assign("a.Text = \"Hello\"", ["a": hCtrl])
will assign the "Hello" string to the Text property of hCtrl.
At the moment, you cannot something like:
Assign("a.x = NEW Timer")
Assign("a.y = OPEN \"file\")
But this is planned.
Enjoy it!
--
Benoît
More information about the User
mailing list