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 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user