|
Technical answers from the trenches |
|
Adding Strings to Memo Variables
| ||||
Posted: 12 June 2003 |
||||
  |
Applies to: Paradox 5.0 and later |
|||
  |
Audience: Beginner |
|||
Question: I have a Memo variable. How do I add string (text) values to it?Typecast the string value as a Memo and then append it to your variable, as shown in the following code sample: var
MyMemo 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 MyMemo.isAssigned() then
MyMemo = Memo( str )
else
MyMemo = MyMemo + Memo( str )
endIf
; fldMemo is an unbound field object on the form
fldMemo.Value = MyMemo
endMethodAs you review this code, please keep the following points in mind:
|
|||
|
||||||||
|
Copyright © 2000-2004, techtricks.com; All Rights Reserved. Acknowledgements, Disclaimers, Terms and Conditions. |
||||||||
|
Article last updated on 14 June 2003
|
||
|
|
||
|
[- End -]
|