Illkillutill
02-01-2012, 12:36 AM
I'm trying to add a form to a script, and it loads just fine, but when I close the form and try to get the values of fields i get an error... should I be doing something different?
when I do this
WriteLn(PlayerName.Text)
i get
[Error] (907:14): Unknown identifier 'PlayerName' at line 906
PlayerName in the form...
with PlayerName do
begin
Parent := GroupBox1;
Left := 8;
Top := 20;
Width := 126;
Height := 21;
TabOrder := 0;
Text := 'Username';
end;
and have the record
type
TForm1_1 = record
PlayerName: TEdit;
end;
when I do this
WriteLn(PlayerName.Text)
i get
[Error] (907:14): Unknown identifier 'PlayerName' at line 906
PlayerName in the form...
with PlayerName do
begin
Parent := GroupBox1;
Left := 8;
Top := 20;
Width := 126;
Height := 21;
TabOrder := 0;
Text := 'Username';
end;
and have the record
type
TForm1_1 = record
PlayerName: TEdit;
end;