[Gambas-user] Re: string to object coercion?  

Mail List cmlst at ...546...
Fri Jul 30 21:03:57 CEST 2004


> Am Freitag, 30. Juli 2004 19:25 schrieb Mail List:
>  > I have a text box name "textbox1"
>  > I would like to print the text in textbox1
>  >
>  > I would like to code the following:
>  >
>  > a = "textbox1"
>
>  set the text:
>         textbox1.text = "some text"
>  get the entry from textbox1:
>         dim a as string
>         a = testbox1.text

I probably didn't explain my intentions well enough.
Instead of

testbox1.text

I would like to substitute a string with the same name as the object  - 
testbox1 - where

dim a as string
dim b as string

a = "textbox1"

b =  a.text


thanks

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 662 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20040730/d67bf3da/attachment.bin>


More information about the User mailing list