Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread Error closing a Modal Form
Thu, Feb 25 2016 4:57 PMPermanent Link

Richard Harding

Wise Nutrition Coaching

I am using EWB 2.04b1.

I have a modal form that looks up Supplier details.  If I close the form using the OK button by setting the ModalResult to mrOK, it works OK.

The Double Click event for the grid can also close the form by setting the ModalResult to mrOK.  

procedure TfmSupplierLookup.Grid1DblClick(Sender: TObject);
begin
  ModalResult := mrOK;
end;

If the form is closed in this way, I receive the error:

 Application error: Unable to get property 'telement_fenabled' of undefined or null reference.

Apart from the error message, the double click works - the selected Supplier is placed in the grid.

I have no idea how I can go about fixing this error.  Can someone help?

Thank you.
Richard Harding
Fri, Feb 26 2016 5:38 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Richard,

<< I am using EWB 2.04b1.

I have a modal form that looks up Supplier details.  If I close the form using the OK button by setting the ModalResult to mrOK, it works OK.

The Double Click event for the grid can also close the form by setting the ModalResult to mrOK.  

procedure TfmSupplierLookup.Grid1DblClick(Sender: TObject);
begin
  ModalResult := mrOK;
end;

If the form is closed in this way, I receive the error:

 Application error: Unable to get property 'telement_fenabled' of undefined or null reference.

Apart from the error message, the double click works - the selected Supplier is placed in the grid. >>

Can you email me an example project that replicates this ?  I think this is already fixed, but I need to confirm it.

Thanks,

Tim Young
Elevate Software
www.elevatesoft.com
Sun, Feb 28 2016 4:00 PMPermanent Link

Richard Harding

Wise Nutrition Coaching

<<Can you email me an example project that replicates this ?  I think this is already fixed, but I need to confirm it.>>

Tim - I have emailed a sample project and DB Backup to support

Thank you
RIchard
Wed, Mar 2 2016 9:22 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Richard,

<< Tim - I have emailed a sample project and DB Backup to support >>

Thanks.  I've got the files, and should have an answer for you shortly. I'm working remotely this week, and I had an "access problem", which is why there was a delay in getting a look at this.  My apologies.

Tim Young
Elevate Software
www.elevatesoft.com
Image