Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I write lines of text to a Memo Variable ???

Status
Not open for further replies.

HOTLIPS

Technical User
Dec 5, 2000
55
GB
Hi
Can anyone help ????
I would like trying to write lines of text straight to a memo variable instead of a text file
Hotlips
 
HotLips,

Typecast the string as a memo and then add the result to your Memo variable, as shown in the following code sample:

Code:
var
   Memo1  Memo
endVar

method pushButton(var eventInfo Event)
var
   str  String
endVar

   ; Example only; don't use view() in production apps.
   str.View( "Add Item to Memo" )

   if not Memo1.isAssigned() then
      Memo1 = Memo( str )
   else
      memo1 = memo1 + Memo( str )
   endIf

   ; fldMemo is an unbound field object on the form
   fldMemo.Value = Memo1

endMethod

Hope this helps...

-- Lance
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top