SHIP:Property:variable:varid

From Serious Documentation
Revision as of 10:14, 6 August 2013 by Admin (talk | contribs) (Node: Variable)
Jump to: navigation, search

Node: Variable

Property Data Type Description
varid Short Unique in-context Variable ID for a persistent registry variable.

Variables marked persistent must be stored in the registry in a specific name space, or context. Within that context, each variable must be assigned a unique ID, or varid.

A varid is a 16 bit number, with 0x0000 and 0xFFFF reserved for Serious use. Make sure all your variable IDs are unique.

Variables are stored by a combined unique value of context + varid + varversion. A persistent variable in one GUI with context 0x01, varid 0x0001, varversion 0x01 is a completely different stored variable than one with a different (say, 0x02) context.

See the related properties persistent, context, and varversion. In order to make a variable persistent, you must set these 3 related properties as well.

**The varid property can only be set in SHIPTide.