Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Remove blank line in memo field
Message
From
10/03/2009 12:53:02
John White
Micro-Oriented Software Techniques, Inc.
Phoenix, Arizona, United States
 
 
To
10/03/2009 10:12:20
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01386885
Message ID:
01386936
Views:
51
The following is affected by set memowidth, beware long lines.
#define crlf chr(13)+chr(10)
lcResult = ''
lnLines = memlines(<mymemo>)
_mline = 0
for I = 1 to lnLines
    lcLine = mline(<mymemo>,1,_mline)
    if not empty(lcline)
        lcResult = lcResult + lcLine + crlf
    endif
next
>I need to find a way to remove blank lines from a memo field.
>
>For example, I have the following:
>
>Line 1 Text
>Line 2 Text
>
>Line 4 Text
>
>
>What I need is the following:
>
>Line1 Text
>Line2 Text
>Line4 Text
>
>
>Can someone please suggest an efficient way to do this?
>
>Thanks!
John White [MOST]
Previous
Reply
Map
View

Click here to load this message in the networking platform