Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I add text to an empty memo
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00827699
Message ID:
00827736
Views:
13
Hi Lynda,

There's nothing wrong with this piece of code and it should work in both cases. The problem is somewhere before it. Most likely the record pointer is at EOF so EMPTY(memofield) evaluates to .T. but REPLACE doesn't do anything.

>Currently it looks like this:
>
>IF EMPTY(memofield)
>  replace memofield with cString
>ELSE
>  replace memofield with cstring + CHR(13)+ CHR(10) + memofield
>ENDIF
>the "else" works....
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform