> 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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to