Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Rat() not working
Message
De
31/08/2000 14:03:30
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00411394
Message ID:
00411399
Vues:
12
>I have a string which contains spaces. I a trying to locate the last space in the string. however rat() seems to deliver a zero.
>
>cstr = "Mary Hellen Bell"
>
>result = rat('',alltrim(cstr)) result = 0

'' is not the same as ' ' - RAT(' ',ALLTRIM(cStr)) should work (ie it does work if I try it.)

>
>shouldn't rat() return a 12. What gives?
>

The empty string '' is not equivalent to a space.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform