How to transfer the contents of a TMemo component to a memo buffer

Category

Code Based - General

Question

What is the correct procedure for transfering the contents of a TMemo component to a memo buffer in the code-based components of Rave?

Solution

The following simple assignment can be used to accomplish this in Rave:

Delphi Example:

Memobuf.Memo := Memo1; { Memo1 is the TMemo component }

C++Builder Example:

MemoBuf->Memo = Memo1; { Memo1 is the TMemo component }