Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Write to expr memo in frx w/alines
Message
From
15/12/2000 11:08:54
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00453960
Message ID:
00453979
Views:
28
>I need to change two fields in the expr field of an frx, but leave the rest. I'm doing this by scattering the memo and using an alines command. Then I loop through the array and change what I need. What I don't know how to do is write the array back to the memo.
>
>Can anyone help me with the syntax?

You would have to do loop through the array, there's not a function to take it back from ALINES(), e.g.
#Define CRLF Chr(13)+Chr(10)
** assuming have the array already
** note: using For ji instead of For Each 
**       because if a single line is long, it could error out with a 
**       "string is too long to fit" error

Select myreport
Blank Field expr
For ji = 1 To ALen(laLines, 1)
   lcLine = laLines[ji]+CRLF
   Replace expr With expr + lcLine
EndFor
Insanity: Doing the same thing over and over and expecting different results.
Previous
Reply
Map
View

Click here to load this message in the networking platform