SetLength(Edit1.Text, Length(Edit1.Text) - 1);
Hi dear forum people,
I tried this:
SetLength(FormX.TextEntry.Text, Length(FormX.TextEntry.Text) - 1);
And I get error as follows:
UnitX.pas(166,36) Error: Can't take the address of constant expressions
I searched and found that Properties can not be passed by reference. So I suppose I have to set a var to have the value, and so forth. Am I supposing right, or is there a better way?
Also, I suspect that some functions can not use the properties directly, so I'd be aware of this?
But more than not, I suspect I may be misguiding myself, and hope a sentence or two from you good people, can provide some fundamental grasp.
Thanks.