Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Apostrophes and Replaces
Message
From
24/07/2000 10:37:10
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00396125
Message ID:
00396144
Views:
14
>>>How can I use the REPLACE command with a field that contains an apostrophe in it? For example, REPLACE cPrefix WITH "Women's Hospital, Flint" WHERE blah, blah ...
>>>
>>>thanks
>>
>>I tried that command just now and it worked. If you surround it with double quotes it should work. What error are you getting?
>
>If the intent is to replace the field with exactly "Women's Hospital, Flint", trying putting it into a variable, like this
>
>repstr = '"Women'+"'s Hospital, Flint"+'"'

That's not very clear is it -

"Women+'s Hospital, Flint+"
Mike

"I can live with doubt and uncertainty and not knowing. I think it is much more interesting to live not knowing than to have answers that might be wrong." - Richard Feynman
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform