QB64.org Forum

QB64 Team Software => InForm Discussion => Topic started by: Qwerkey on August 25, 2018, 04:14:34 am

Title: Checking Control Names at Runtime / IDE
Post by: Qwerkey 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
Title: Re: Checking Control Names at Runtime / IDE
Post by: FellippeHeitor on August 25, 2018, 08:12:36 am
Request noted, Notley. ☺️