Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How does one determine if a value is a true INTEGER?
Message
De
26/10/2000 07:52:05
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
26/10/2000 07:24:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00431993
Message ID:
00434488
Vues:
23
>---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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform