Page 1 of 1
CloseGadgetList()
Posted: Tue Apr 28, 2015 1:11 am
by IdeasVacuum
I find the GadgetList functions uncomfortable to use, the culprit being CloseGadgetList(). I think this is better syntax:
Code: Select all
OpenGadgetList(#ContainerID)
;....some gadgets
CloseGadgetList(#ContainerID)
Re: CloseGadgetList()
Posted: Tue Apr 28, 2015 3:37 am
by TI-994A
Hi IdeasVacuum. You're right; it would add a level of clarity. But since it only responds to its corresponding
OpenGadgetList(), adding the gadget/window number as a requirement would only add verbosity to code.
When working in
curly-bracket languages, I usually add a comment at the closing bracket to identify which scope it is closing. Perhaps this might be sufficient.
Just a suggestion.

Re: CloseGadgetList()
Posted: Tue Apr 28, 2015 3:08 pm
by IdeasVacuum
yup, already do that, but............