It would be nice to have a function in the designer for a form that would paste all of the handles of every control on a form into the clipboard. If you had check boxes to handle types of controls that would even be better.
To clear all of the TextBoxes on a form you simply have to go through the "grunt work" of looking them all up. If you could simply paste a list into the code window you could easily do some "bulk" work with some cut and pastes and save the typos or using F4 many times.
Even if you just "dumped it all" in some comment formated fashion it would be nice. A button or right-click on the F4 popup would work.
Something like ---
' <formhandle> : <textvalueassigned>
' <controltype> : <controlhandle> : <textvalueassigned>
' <controltype> : <controlhandle> : <textvalueassigned>
' <formhandle> ......
' etc
Another way to clear all of the textboxes would be to set them up in a ControlArray and loop through that array.
For example, say that you have a series of TextBoxes set up in a control array and their name is TEXTENTRY. The array that FireFly generates to hold the Window handles would be something like the following:
HWND_FORM1_TEXTENTRY(0)
HWND_FORM1_TEXTENTRY(1)
HWND_FORM1_TEXTENTRY(2)
etc...
The following should clear the text boxes.
For x& = lbound(HWND_FORM1_TEXTENTRY) To Ubound(HWND_FORM1_TEXTENTRY)
FF_Control_SetText HWND_FORM1_TEXTENTRY(x), ""
Next
See? Simple and quick to implement. :)