Simplicty and flexibility!


Function::Memo

MemoMemoReplace
MemoMemoReplace(DesitnationMemo,Tag,SourceMemo)
MemoMemoReplace(MyMemo,"[{Header}]",lookup SignatureTable Header)
retval := MemoMemoReplace(LetterTemplate,"[{Signature}]",any ExtendedUser with Username=Current user Signature) .


To replace a tag in a memo with the content of another memo.

Memo manipulation in DE8 is much more tha simple manipulation of text. The Memo in question can be a HTML template, a invoice template, a report template etc. You can build the template with partly formatted code and partly with tags that will be replaced with content of columns and memos when you build the document.

You can for instance build a letter where you have "custom" headers, footers etc and simply replace the tags when you build the letter or you can build a custom made offer with full descriptions etc. from a library stored in the database.

Parameters


DestinationMemo: Memo

The Memo that contain the tag and will retain the result.

Tag: String (255).

The tag to be replaced by the memo.

SourceMemo: Memo

The memo that will replace the Tag.

Returns/Result


Nothing.

Examples


Reference

See Also


On the forum about MemoMemoReplace

On the blog about MemoMemoReplace

New function in 8 - MemoMemoReplace() - Replace a tag with the content of a Memo (Ver 8.0.0.1282)

This is the complementary function of MemoReplace() which replace a tag in a Memo with the content of a string(255) or any other "normal" prism field/value.The exciting bit about MemoMemoReplace() is that you can replace any tag with...

Product: Dataease [{8}]FIVE. Written by DataEase 08/05/13 at 13:46:40


dg3_HelpView