[Gambas-user] Object.class stop working

Jacky jscops at ...11...
Sat Jan 5 09:43:03 CET 2008


Le Saturday 05 January 2008 07:40:15 R. Stormo, vous avez écrit :
> Why does not this work anymore?
> it do crash here "    IF Object.Class(hControl) = "TextBox" THEN "
> "Wanted object got string instead?"
>
>   DIM hControl AS Control
>   'DIM i AS Integer
>   'Clear fields
>   FOR EACH hControl IN ME.Children
>     IF Object.Class(hControl) = "TextBox" THEN
>       Object.Call(hControl, "Clear")
>     END IF
>   NEXT
>
>
> Regards Rohnny
>
> My Gambas Community http://gambasforum.tk

If you are in Gambas 2.0.0 you must have Object.Type.





More information about the User mailing list