[Gambas-user] Predefined constants

Benoit Minisini gambas at ...1...
Thu Jul 22 22:13:31 CEST 2004


On Thursday 22 July 2004 23:21, Charlie Reinl wrote:
> Salut Benoit,
>
> in you Predefined constants
> I miss the Language based decimal  constant
> exp.
> IF Instr("0123456789."),Right(TextBox1.Text,1)) = 0 THEN
>
> but the dot isn't everywhere the decimal  sign.

So it can't be a constant :-)

>
> better would be
> IF Instr("0123456789" & gb.decimal  ),Right(TextBox1.Text,1)) = 0 THEN
>
> Amicalement
> Charlie
>

As a workaround, you can do 'Mid$(Str$(2.5), 2, 1)' to get it.

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




More information about the User mailing list