[Gambas-user] Classes and objects
Benoit Minisini
gambas at ...1...
Mon Mar 10 13:24:01 CET 2008
On samedi 8 mars 2008, Steven Lobbezoo wrote:
> Hi,
>
> I have a class that does
>
> Object.SetProperty(ctrl, "Rows.Count", 0)
> Which does not work.
>
> If I do Object.SetProperty(ctrl.Rows, "Count", 0)
> this does not work either
>
> ctrl is a gridview in the form that uses my class.
> How can I set it's property's ?
>
> Thanks
> Steven
>
Use the Object the anonymous datatype, or a fully specified datatype if you
know it at compile time:
DIM hCtrl AS Object
or
DIM hCtrl AS GridView
and:
hCtrl.Rows.Count = 0
Regards,
--
Benoit Minisini
More information about the User
mailing list