JohnC Expert Licensed User Longtime User Nov 25, 2013 #1 It is often very efficient to have custom type parameters for routines, so as I am writing code to call a particular routine, the IDE pops up a list of the valid values for each parameter as I go from parameter to parameter. Even if I try to "simulate" custom types ENUM like this: Code: Copy Type AbortType(objNone As Int, wsJob As Int) Dim AbortTypes As AbortType AbortTypes.objNone=0 : AbortTypes.wsJob=1 And then setup a routine to use this type/enum as a parameter: Code: Copy Sub DoAbort(Abortway As AbortType) 'do something End Sub It wont pop-up the different values for the parameter, instead I have to manually type in "AbortTypes.wsJob", which doesnt seem to save me any time. Additionally, because B4A does not yet support optional parameters, the more parameters a routine has, the more time is needed to call it because you have to manually type in the FULL value for EVERY parameter by hand because the IDE doesn't offer any shortcuts of poping up the valid values for each parameter. Last edited: Nov 25, 2013
It is often very efficient to have custom type parameters for routines, so as I am writing code to call a particular routine, the IDE pops up a list of the valid values for each parameter as I go from parameter to parameter. Even if I try to "simulate" custom types ENUM like this: Code: Copy Type AbortType(objNone As Int, wsJob As Int) Dim AbortTypes As AbortType AbortTypes.objNone=0 : AbortTypes.wsJob=1 And then setup a routine to use this type/enum as a parameter: Code: Copy Sub DoAbort(Abortway As AbortType) 'do something End Sub It wont pop-up the different values for the parameter, instead I have to manually type in "AbortTypes.wsJob", which doesnt seem to save me any time. Additionally, because B4A does not yet support optional parameters, the more parameters a routine has, the more time is needed to call it because you have to manually type in the FULL value for EVERY parameter by hand because the IDE doesn't offer any shortcuts of poping up the valid values for each parameter.