andy715723
Programmer
I have a question regarding the following code
Code:
procedure TForm1.Button1Click(Sender: TObject);
var edit : TEdit;
begin
ShowMessage( edit.Name );
if NOT edit.ReadOnly then
ShowMessage( 'FALSE' );
end;
[\code]
Why does accessing these properties [b]NOT[/b] cause an access violation? Strangely, edit.name evaluated to "Button1"
-Andy