Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Rat() not working
Message
From
31/08/2000 14:03:30
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00411394
Message ID:
00411399
Views:
13
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform