[Gambas-user] Re: string to object coercion?   
    Daniel 
    daniel.campos at ...338...
       
    Sat Jul 31 10:14:48 CEST 2004
    
    
  
> 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
You can not do it in that way, you have to do:
Dim a as TextBox
Dim B As String
A=TextBox1
B=A.Text
Regards,
Daniel Campos
> 
> 
> thanks
    
    
More information about the User
mailing list