Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Putting memo field into array
Message
De
21/04/2015 05:53:36
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01618840
Message ID:
01618841
Vues:
42
>I have a memo field called textx
>
>My objective is to be able to print it on a document making sure that CR and LF characters in the memo field perform their proper function when the data is printed
>
>Can I use the alines() function to put the memo field into an array call nlines - the determining definition of a line is one which ends with a CR and LF
>
>If so how?

possibly you open up VFP IDE enter MODIFY COMAND and do a short test such stuff? It's not realy tricky and will not leave a trace.
CREATE CURSOR TestMe (mField m)

lnMemo = 'ABC'+0h0D0A+'DEF'+0h0D0A+'GHI'

INSERT INTO TestMe VALUES (lnMemo)

LOCAL ARRAY;
 laLines(1)

lnLine = ALINES(laLines,mField)
?lnLine
DISPLA MEMO LIKE laLines
USE
it will teach you more then a simple Yes

Update:

You need the enter the following key strokes after entering the code
[CTRL]+A;[SHIFT]+F10;X

I use that so much, I have a macro for it.
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform