[Gambas-user] Object.class stop working

R. Stormo rohnny at ...1248...
Sat Jan 5 10:18:14 CET 2008




jacky-12 wrote:
> 
> 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.
> 
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
> 
> 

Thanks I got it now. Had to change it to 
     IF Object.Type(hControl) = "TextBox" THEN


Regards Rohnny

My Gambas Community http://gambasforum.tk

-- 
View this message in context: http://www.nabble.com/Object.class-stop-working-tp14630509p14631247.html
Sent from the gambas-user mailing list archive at Nabble.com.





More information about the User mailing list