Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Substr() not working correctly
Message
From
16/09/1999 15:16:04
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Substr() not working correctly
Miscellaneous
Thread ID:
00265612
Message ID:
00265612
Views:
60
I have a table called pnltemp. The store column is defined as CHAR(4). I am wanting to scan through the entire table and strip off the leading character. I am using the following code, but for some reason it is not working properly (does it for maybe 4 of the 70 entries):


SELECT pnltemp
SCAN
store2 = substr(alltrim(store),2,3)
REPLACE store with store2
ENDSCAN



PLEASE HELP!!!!
Next
Reply
Map
View

Click here to load this message in the networking platform