
New Functions in 8 - MemoSetGlobal()+MemoGetGlobal() - Global array of memo values (8.0.0.1287)
We have now reached 19 Memo specific functions...puh!
Memo has come to it's own in 8 and it is a little funny as they were so reviled in 7.
We and our 8 users have now used the different memo functions for quite a while and one thing was apparently missing. The opportunity to transfer the content of a memo via memory i.e. global memory variables.
Due to the way PRISM and Memo works, this is not straightforward. What we have done is to create the complementary functions to the new SetGlobal()/GetGlobal() array and called them MemoSetGlobal()/MemoGetGlobal().
The difference however is that you cannot return a Memo as a value of a function, so MemoGetGlobal() need a destination Memo to populate.
Syntax:
MemoSetGlobal("MyMemoVariableName",TheMemoFieldValueToPutInTheArray)
MemoGetGlobal("MyMemoVariableName",TheMemoFieldThatWeWantToPopulate).
Example:
for MemoTest with Number = 2;
modify records
dummy := MemoCopy(DestMemo , chr(10),3 ) ;
dummy := MemoGetGlobal("Memo1",DestMemo) ;
dummy := MemoMemoCopy(DestMemo,FromMemo,3) .