Derek,
Many thanks for the suggestions.
I have implemented them into my app and it works great, but...........there's always a but
-
I would like to use the Memo-form for multiple Memo fields on the same form.
My current form has 6 Memo fields. So it works for one field but I'm not able to get the data from Memo.memo1 back into the other fields.
-
Here's what I have tried so far. I thought by using a variable it might help but it doesn't seem to help.
I'm using a couple of buttons to open and close the Memo form. I think they're a little more user friendly than the "bounce bar". But the same procedure works with either a button or the "bounce" bar
These are my procedures to move the DATA to and from frmMemo .
// GLOBAL VARIABLE
var varMemo: String;
// Procedure to put the data from the Memo-field into frmMemo
procedure frmEducation_ActivitiesViewEdit_OnClick (Sender: TObject; var Cancel: boolean);
begin
// Put the memo field into varMemo
varMemo := frmEducation.Activities.Text;
frmMemo.Show;
// Put the DATA from the varMemo into the frmMemo Memo1 field
frmMemo.Memo1.Text := varMemo;
end;
// Procedure to put the data back into the original Memo field
procedure frmMemo_btnExit_OnClick (Sender: TObject; var Cancel: boolean);
begin
varMemo := frmMemo.Memo1.Text;
frmEducation.Activities.Text := varMemo;
frmMemo.Close;
end;
-
The above procedures work OK
-
When someone opens up frmMemo and changes the data and then tries to put it back into the original Memo field, it requires the Original Memo field as seen in my example above.
However I don't know how to make this process so I can use it with other Memo fields on the same form.
-
Thanks, Frank