Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How does one determine if a value is a true INTEGER?
Message
From
26/10/2000 07:52:05
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
26/10/2000 07:24:45
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00431993
Message ID:
00434488
Views:
21
>---Snip
>>If I try the string "2000","99 and 44/100ths","12345","ABCDGoldFish","91.21"
>>
>>It produces:
>>
>>20.00,"99 and 44/100ths",123.45,"ABCDGoldFish",91.21
>
>Ed,
>
>I think I´ve figured out how it works, and there is a tiny glitch here.
>
>oReg.PATTERN = '("\d*)(\d{5}")' &÷ by 10000, right?
>
>Works fine til you get to a "number" that is smaller than the divisor.
>
>To illustrate:
>
>? 1000/10000=0.10 but
>
>CVAR='"1000"'
>oReg.PATTERN = '("\d*)(\d{5}")'
>? oReg.REPLACE(cVar,'$1.$2')="1000"
>
>Could you help me to get around that one?
>
>Thank´s

Peter,
If you don't want my attention why CCing to me ? If you want then provide the lines I requested. Thanks.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform