[Gambas-user] How to set property dynamically
Benoit Minisini
gambas at ...1...
Fri Nov 21 14:13:48 CET 2008
On vendredi 21 novembre 2008, L Jumadi wrote:
> I just want to know wheter gambas can set property inside a virtual
> collection. For Example I try to set Rows.H of a Gridview, I try command
> like this:
>
> Object.SetProperty(Obj,"Rows.H",10)
>
> (Where Obj is a Gridview, and of course "Rows.H" usually a variable)
>
> It return error. Is there any other way to do it? I have trouble to
> read property too (Dynamically), but someway gambas debugger can read
> it properly (I think it should use to read it dynamically). Am I
> missing something?
>
> Regards.
>
> L.Jumadi
>
You can't do that with Object.SetProperty. But the question is: why do you use
Object.SetProperty?
You can use an Object reference:
DIM hObject AS Object = Obj
hObject.Rows.H = 10
--
Benoit Minisini
More information about the User
mailing list