Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Remove blank line in memo field
Message
De
10/03/2009 12:53:02
John White
Micro-Oriented Software Techniques, Inc.
Phoenix, Arizona, États-Unis
 
 
À
10/03/2009 10:12:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01386885
Message ID:
01386936
Vues:
50
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]
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform