[Gambas-user] Difrent usage from Val() in 2.x and 3.x?

Fabien Bodard gambas.fr at ...626...
Thu Oct 18 14:51:49 CEST 2012


2012/10/18 Gregor Burck <gregor at ...2441...>:
> Hi,
>> Use it with only digits.
> OK, but how I could handle this:
>
> I overtook GamKuWa http://www.fishing-penguins.de/gamkuwa.html) for my use
> In the project , there are often Formated TextBoxValues like "0,00 €". Later the Value Is use to calculate.
>
> So the author took Val to generate the Value of the TextBoxText. As I write in gambas2 has it work.
> How should I handle that better? I could give up the formated TextboxText, or do some like this?:
>
> Val(Replace(txt_Netto_erm_Rechnung.Text, " €", ""))
>
> to get the Value?
for exemple

or left(txt_Netto_erm_Rechnung.Text,-2)
> Bye
>
> Gregor
> --
>
>
>
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_sfd2d_oct
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user



-- 
Fabien Bodard




More information about the User mailing list