[Gambas-user] GambasTester 0.9.9
Jussi Lahtinen
jussi.lahtinen at ...626...
Mon Nov 15 22:02:07 CET 2010
OK, these are not the errors I meant... These are obviously my errors.
I fixed Format$ to be compared against Str$().
There might be other similar errors too...
Jussi
2010/11/15 Benoît Minisini <gambas at ...1...>
> > If Format$(Pi, "#.##") <> 3.14 Then
> > Return 85
> > Endif
> >
> > this test can be true only in country where decimal separator is "."
> >
> >
> > in france ... the decimal separator is ","... then you compare a
> > string to a float !!
> >
> > All the error i have are based on this problem.
> >
>
> The problem is your comparison between a string (Format$) and a number. The
> number is automatically converted to a string by using CStr(), which does
> not
> use localization contrary to Format$().
>
> --
> Benoît Minisini
>
>
> ------------------------------------------------------------------------------
> Centralized Desktop Delivery: Dell and VMware Reference Architecture
> Simplifying enterprise desktop deployment and management using
> Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
> client virtualization framework. Read more!
> http://p.sf.net/sfu/dell-eql-dev2dev
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: GambasTester-0.9.10.tar.gz
Type: application/x-gzip
Size: 13913 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20101115/c88a2799/attachment.bin>
More information about the User
mailing list