Board index » delphi » BUG: why does name property = ''

BUG: why does name property = ''

I have observed a recurring bug in Delphi.  Can anyone tell me
why the following code gives both name properties as ''?

procedure TForm1.button1click(sender: Tobject);
  begin
  myroutine(button1);
  end;

procedure TForm1.myroutine(control : TControl);
  var
    prntfrm : TForm;
    frmname, ctlname : string;
  begin
  prntfrm := getParentForm(control);
  frmname := prntfrm.name;
  ctlname := control.name;
  {both of these will be ''}
  end;

Thanks for any help,
Eric J. Lannert
Northwestern University, Evanston, IL.   USA
lann...@ils.nwu.edu

 

Re:BUG: why does name property = ''


The bug is fixed in 1.02. I think it is also fixed in the 1.01
patches.

Mark

Other Threads