Function GetPrefInt returns the value of a numeric VectorWorks preference setting.
A table of preference dialog items and their corresponding IDs may be found in the Scirpt Appendix.
FUNCTION GetPrefInt(prefIndex : INTEGER): INTEGER;def vs.GetPrefInt(prefIndex):
return INTEGER| Name | Type | Description |
|---|---|---|
| prefIndex | INTEGER | Preference item constant. |
Returns the status of the specified preference item. Used for preferences that return an Integer instead of a Boolean (see GetPref)
maxUndos:=GetPrefInt(17);maxUndos = vs.GetPrefInt(17)Availability: from VectorWorks8.0