Accsess Violation while assigning a value to MemoView
Hi, I'm going mad!
I want to change the text of memo view in fastScript.
So in onPreviewDoubleClick I wrote:
totalIDXMemo.Text:='Hello';
But all I get is an Access Violation. WHY??
I want to change the text of memo view in fastScript.
So in onPreviewDoubleClick I wrote:
totalIDXMemo.Text:='Hello';
But all I get is an Access Violation. WHY??
Comments
This is my memo on report.
I have deleted this event and try to assign a text somewhere else:
myMemo.text:='Hello';
I don't get access violation anymore, but the text doesn't change
OK, that works but what I really need to to is to change the text in other event handler. So SENDER is not taken under consideration, what's more "MODIFIED" is said to be undeclared identifier.
What is strange is that:
ShowMessage shows "Hello" while myMemo stays blank
OnAfterPrint of other MemoView(lets call it "loadsMemo").
This sumMemo holds result of an aggregate function, so this is the only place where I can get this result into variable.
Then I make some other calculations and want to assign the result to myMemo:
ForExample: