[lazarus] label1.caption:=edit1.text ?

Mattias Gaertner nc-gaertnma at netcologne.de
Sat Jun 23 04:48:48 EDT 2001


On 2001.06.22 21:19 Utilisateur exemple SuSE Linux 6.4 wrote:
> No problem when i compile and link but when the program runs i have a
> violation access.
> label1.caption is a string and edit1.text is a string no ?

Caption and Text are ansistrings.

If you got an access violation in the line
label1.caption:=edit1.text;
then probably either label1 or edit1 are nil (= not created).

Mattias Gaertner







More information about the Lazarus mailing list