Sets the value of the specified VectorWorks preference setting. Used with preference settings requiring a LONGINT value.
A table of preference dialog items and their corresponding IDs may be found in the Scirpt Appendix.
PROCEDURE SetPrefLongInt(
index : INTEGER;
value : LONGINT);def vs.SetPrefLongInt(index, value):
return None| Name | Type | Description |
|---|---|---|
| index | INTEGER | Preference item index. |
| value | LONGINT | New value for preference. |
Sets the value of the specified preference to the value passed. Similar to SetPref() except it works on preferences for long integer values
SetPrefLongInt(55,128);BEGIN
SetPrefLongInt( kConstrainMode, kConstrained );
END;
END; {of CASE theEvent}
SetPrefLongInt (162, gDecimalPrec);
BEGIN
gDecimalPrec := GetPrefLongInt (162);
unitsStyle := GetPrefInt (170);
CASE unitsStyle OF
1, 3, 4: SetPrefLongInt (162, 3);
2 : SetPrefLongInt (162, 4);
5, 10 : SetPrefLongInt (162, 8);
7 : SetPrefLongInt (162, 2);
8 : SetPrefLongInt (162, 3);vs.SetPrefLongInt(1, value)Availability: from VectorWorks9.0