Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need Help editting a memo field
Message
From
29/01/1999 13:20:21
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00181890
Message ID:
00181920
Views:
12
>My first attempt to edit a memo field. The memo field in table frx1, column expr, and contains:
>
>Alias = "qmf_temp"
>CursorSource = ..\tempdbfs\bg\qmf_temp.dbf
>Name = "Cursor1"
>
>
>Want to change the \bg\ to \xx\. How can I accomplish this?
>

How about:

REPLACE memofield WITH STRTRAN(memofield,"\bg\","\xx\")

Think of a memo field as a big string in a table, with some built-in parsing that allows you to examine it line-by-line easily.

Processing a memo broken up into lines is simplified by some memo-specific functions; ALINES() can extract a memo into a 1 dimensional array of strings, you can use the MLINE() and MEMLINES() functions to spin through the memo line-by-line. ATLINE() and ATCLINE() will return memo line references for substring searches similar to AT() and ATC.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform