Function NumCustomObjectChoices returns the number of choice strings for a specified popup menu or radio group parameter in a plug-in object.
The string passed into the parameter name argument should use the parameter constant syntax, not the actual parameter name. The string should have the prefix character 'P', and should have all spaces replaced with underscore characters. For example, a parameter Jamb Depth would have a constant declared as PJAMB_DEPTH and therefore the parameter name argument to this function should be the string 'PJAMB_DEPTH'.
FUNCTION NumCustomObjectChoices(
objectName : STRING;
parameterName : STRING): INTEGER;def vs.NumCustomObjectChoices(objectName, parameterName):
return INTEGER| Name | Type | Description |
|---|---|---|
| objectName | STRING | Name of plugin object. |
| parameterName | STRING | String indicating which parameter |
Call from CustomObject scripts only. Return number of choice strings for a particular popup menu or radio group parameter.
maxChoices := NumCustomObjectChoices(objName, 'PDINNER_MENU');VS Functions: GetCustomObjectChoice
Availability: from VectorWorks8.0