E enonod Well-Known Member Licensed User Longtime User Jan 2, 2013 #1 When setting up the required parameters for initializing a class is it possible to declare defaults for when a parameter is left off (deliberately)? If so, must the said parameter be the last in the list or can a blank be left between commas? i.e. if StrokeWidth were always to be a particular value but I don't wish to hard code it in case on rare occasions I want an object with a thicker line.
When setting up the required parameters for initializing a class is it possible to declare defaults for when a parameter is left off (deliberately)? If so, must the said parameter be the last in the list or can a blank be left between commas? i.e. if StrokeWidth were always to be a particular value but I don't wish to hard code it in case on rare occasions I want an object with a thicker line.
Erel B4X founder Staff member Licensed User Longtime User Jan 3, 2013 #2 There are no optional parameters in Basic4android. All the parameters should be included. Upvote 0