Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Putting memo field into array
Message
 
To
21/04/2015 05:53:36
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01618840
Message ID:
01618842
Views:
37
>>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.

Thanks
Specialist in Advertising, Marketing, especially Direct Marketing

I run courses in Business Management and Marketing
Previous
Reply
Map
View

Click here to load this message in the networking platform