Perhaps GAMBAS needs something like Python's <string> y=repr(<any> x) to guarantee y is a string representation of x
> Date: Tue, 30 Nov 2010 09:04:58 +0100 > From: r...@cyberjunky.nl > To: gambas-user@lists.sourceforge.net > Subject: Re: [Gambas-user] Removing / Modifying IsXXXX() functions in Gambas3 > > > >>> Mail.module: IF IsString(Main.GlobalVar["Minute"]) THEN > >>> Main.GlobalVar["Minute"] = Val(Main.GlobalVar["Minute"]) > >> Just seems to be checks to see if the variant value from that collection > >> isn't empty, to prevent errors. > > So use 'Not IsNull()' instead. > > > > I get when I do If Not IsNull(Main.GlobalVar["Minute"]) Then .... > > Error: Type Mismatch wanted string, got integer. > > Main.GlobalVar["Minute"] 's value is 34 > > Main.GlobalVar[] is a Collection with Variants , so contains all types > of values. > > Sometimes, (don't know why) Main.GlobalVar["Minute"] contained a string > so "34" instead of an integer, then further down my program things went > wrong, so therefor this stupid check and correction posted above was used.. > > Regards, > Ron_2nd. > > ------------------------------------------------------------------------------ > Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! > Tap into the largest installed PC base & get more eyes on your game by > optimizing for Intel(R) Graphics Technology. Get started today with the > Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. > http://p.sf.net/sfu/intelisp-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user