[Gambas-user] Stange problem with CInt
Ron Onstenk
ronstk at ...239...
Fri Mar 7 16:47:52 CET 2008
On Friday 07 March 2008 13:41, Steven Lobbezoo wrote:
> Hi,
>
> I have a strange problem with CInt
>
> I do :
> i = CInteger("123.00")
>
use i = Cint(Val("123.00))
maybe this helps
> where i is an integer and "123.00" a string of course
> I tried Cint and CInteger
>
> I get a message :
> Type Mismatch : Wanted Integer, Got string instead
>
> In the doc it says that the variable between the brackets is type
> Variant.
>
> I donnot get it, a variant can be a string no ?
>
> I use 2.1.0 on Suse 10.3
>
> Steven
Ron
More information about the User
mailing list