[Gambas-user] Convertion bug or problemm undestood !!!

Benoit Minisini gambas at ...2...
Tue Nov 11 14:27:24 CET 2003


Le Mardi 11 Novembre 2003 08:31, Olivier Coquet a écrit :
> another funcition would be implemented for convenience in futur 0.72
>
> all con functions (CDate, Format$, etc.....) must return a NULL char or ""
> string if the result can't be obtened
>
> ex:
>
> CDate("toto") => NULL
>
> actualy CDate ("toto") => error type mismatch
>
>
> regards
> Olivier
>

Bad idea, because NULL is a valid value in some cases.
CStr("") => "" or NULL (it is the same value).

Why are you afraid when the interpreter raise errors ?

Regards,

-- 
Benoit Minisini
mailto:gambas at ...1...





More information about the User mailing list