[Gambas-user] casting, macro change from str to resultfield?

ron ronstk at ...239...
Tue Jan 3 08:18:52 CET 2006


On Tuesday 03 January 2006 08:01, johnf wrote:
> FOR EACH hfield IN contactdata.Fields
>         INC i
>         loopfield = "contactdata!" & hfield.Name
>         contacts[c, i].Text = loopfield
>       NEXT
> 

hField is the field you want and is a virtual claas.
Members are .Name and .Value so 
>         loopfield = "contactdata!" & hfield.Name
should be
>         loopfield = hfield.Value

in a more logical way ?

Ron




More information about the User mailing list