[Gambas-user] Eval, and "Eval" for assignment?
Mike Brett
serif at ...1870...
Mon May 26 12:10:14 CEST 2008
Q1. Why does something like this fail with "Unknown symbol" please?
PRINT Eval("lblMaterial" & "6")
Q2. I have a set of consecutively named labels (lblMaterial0,
lblMaterial1, and so on) to which I want to assign text values from a
database. Eval() is clearly not designed for assignment purposes, so
what's the cleanest way to do this in gambas please?
I'm looking for a solution like
FOR EACH dbResult
??Eval??("lblMaterial" & CStr(iC)).Text = dbResult!value
ic += 1
NEXT
Thanks.
- Mike Brett - (gambas 2.6.0 on Fedora 8)
More information about the User
mailing list