Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Simple replace, or so I thought!!!!
Message
 
To
13/12/1999 07:18:28
Jolene Dicks
Human Resources Development Canada
St. John's, Newfoundland, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00302621
Message ID:
00302624
Views:
16
>Hi,
>
>Is there anything wrong with this statement?
>
>
>replace allt(left(dssmain.dlcinc_m95,2)) with "19"
>
>
>Please advise?

Jolene,

Yes there is something wrong with it. The REPLACE command takes a field name as the first argument not an expression. What, exactly, are you trying to do? Is it to replace the first two characters of the field with "19"? If that's it then this should work;

REPLACE dlcinc_m95 WITH "19" + SUBSTR(dlcinc_m95,3)
Previous
Reply
Map
View

Click here to load this message in the networking platform