Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Replace command
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00832277
Message ID:
00832285
Views:
16
I think it's leftover from dark ages of Dbase II. I would recomend not to use it because it may stop working in the future releases of VFP like it stopped working in LOCAL, PRIVATE and PUBLIC variable lists in VFP7.

>Hello All,
>
>As per MSDN Replace command syntex is :
>
>REPLACE FieldName1 WITH eExpression1 [ADDITIVE]
>   [, FieldName2 WITH eExpression2 [ADDITIVE]] ... [Scope]
>   [FOR lExpression1] [WHILE lExpression2] [IN nWorkArea | cTableAlias]
>   [NOOPTIMIZE]
>
>In my program I am replacing values in table like this:
>
>Case : 1
>Select Customer
>Append Blank
>Replace Cust_Code with '0001'
>        Cust_Name with 'AJAY MISHRA'
>
>Case : 2
>Select Customer
>Append Blank
>Replace Cust_Code with '0001',;
>        Cust_Name with 'AJAY MISHRA'
>Both is working fine. I am curious to know that how case 1 is working fine (without '; separator).
>
>Please comment on this feature.
>
>TIA
>Ajay Mishra
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform