Author Topic: Checking Control Names at Runtime / IDE  (Read 5006 times)

0 Members and 1 Guest are viewing this topic.

Offline Qwerkey

  • Forum Resident
  • Posts: 755
    • View Profile
Checking Control Names at Runtime / IDE
« on: August 25, 2018, 04:14:34 am »
Whilst creating my latest project, I have been changing the names of controls in the UI Editor and then saving with the new ID names.  As InForm cannot update the subroutines (only the DIM SHARED declarations), the old names persist and need to be edited by hand, which is fine.  But I have noticed that if you miss changing the control ID name in the .bas to the new value, the program does not fail in runtime for an event of a control ID that does not exist.  Could InForm be modified so as to check that in a statement of the form

Control(ControlID).Value, where Value is any of the allowable properties

if the ControlID name does not exist in the Form (in the DIM SHARED declarations), an error is given?  This is a low priority request.

Richard

FellippeHeitor

  • Guest
Re: Checking Control Names at Runtime / IDE
« Reply #1 on: August 25, 2018, 08:12:36 am »
Request noted, Notley. ☺️