[Gambas-user] GambasTester 0.9.9
Jussi Lahtinen
jussi.lahtinen at ...626...
Wed Nov 17 21:23:15 CET 2010
More errors fixed from GambasTester, and now self test ignores comment
lines.
Jussi
On Mon, Nov 15, 2010 at 23:02, Jussi Lahtinen <jussi.lahtinen at ...626...>wrote:
> 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.12.tar.gz
Type: application/x-gzip
Size: 14059 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20101117/6beb79b7/attachment.bin>
More information about the User
mailing list