Re: [lazarus] Converting Strings to Currency

2007-05-11 Thread Graeme Geldenhuys
On 5/11/07, John Meyer [EMAIL PROTECTED] wrote: Maybe StrToFloat(AString); ?? Thanks! That worked, but I have one question. If you have a Currency type, why are you throwing it to a function named StrToFloat? Why not StrToCur or StrToCurrency? Just asking so I know not to make that

Re: [lazarus] Converting Strings to Currency

2007-05-11 Thread Bram Kuijvenhoven
Sébastien TACK wrote: It's a miracle of Oriented Object Progamming ! StrToFloat can take a large type of value Single, Double, Currency. Every method are overload. Overloading methods is something different from polymorphism in object oriented programming (where virtual methods are key in

[lazarus] Converting Strings to Currency

2007-05-10 Thread John Meyer
I tried a search at lazarus.freepascal.org, and it didn't get anywhere, so if somebody could help me out by telling me how I convert a string (specifically, from a TEdit control) to a currency and versey vicey, I'd appreciate it. _

Re: [lazarus] Converting Strings to Currency

2007-05-10 Thread Lee Jenkins
John Meyer wrote: I tried a search at lazarus.freepascal.org, and it didn't get anywhere, so if somebody could help me out by telling me how I convert a string (specifically, from a TEdit control) to a currency and versey vicey, I'd appreciate it. Maybe StrToFloat(AString); ?? -- Warm

Re: [lazarus] Converting Strings to Currency

2007-05-10 Thread John Meyer
Lee Jenkins wrote: John Meyer wrote: I tried a search at lazarus.freepascal.org, and it didn't get anywhere, so if somebody could help me out by telling me how I convert a string (specifically, from a TEdit control) to a currency and versey vicey, I'd appreciate it. Maybe

Re: [lazarus] Converting Strings to Currency

2007-05-10 Thread Sébastien TACK
Thanks! That worked, but I have one question. If you have a Currency type, why are you throwing it to a function named StrToFloat? Why not StrToCur or StrToCurrency? Just asking so I know not to make that mistake in the future. -- The NCP Revue -- http://www.ncprevue.com/blog