This library extends the functionality of the Door library. This first version implements a "FromString" method that will obtain the reference to either a Basic4ppc control or external library object when provided with the name of that control or object as a string.
The reason for providing this is that you can't indirectly address a library object using the Control keyword in an optimised compiled app because the optimised compiler needs the Control(name, type) form of the Control keyword and "type" cannot be a variable and so is limited to the one type of control specified at compile time. Using "FromString" you can get the reference and then get or set properties or run methods using the Door library.
EDIT : Version 1.1 posted. See post #6 for details
EDIT : Version 1.2 posted. With Erel's permission this library now includes all the original Door library functions so can it be used as a replacement for instead of alongside the Door library which makes some things a little easier. See post #11 for details.
The reason for providing this is that you can't indirectly address a library object using the Control keyword in an optimised compiled app because the optimised compiler needs the Control(name, type) form of the Control keyword and "type" cannot be a variable and so is limited to the one type of control specified at compile time. Using "FromString" you can get the reference and then get or set properties or run methods using the Door library.
EDIT : Version 1.1 posted. See post #6 for details
EDIT : Version 1.2 posted. With Erel's permission this library now includes all the original Door library functions so can it be used as a replacement for instead of alongside the Door library which makes some things a little easier. See post #11 for details.
Attachments
Last edited: