MoneyWorks Manual
Edit
!--sphider_noindex-->
TypeOf (variable)
Result Type: Number
Definition Returns a number indicating the type of the variable parameter.
Constant | Notes | Example |
---|---|---|
TypeText | Variable is a string | s= "3.141" typeof(s) // TypeText |
TypeNumber | Variable is numeric | n = 3.141 typeof(n) // TypeNumber |
TypeDate | Variable is a date | n = '6/7/17' typeof(n) // TypeDate |
TypeTable | Variable is a table | t = createTable() typeOf(t) // TypeTable |
TypeSelection | Variable is a selection | s = createSelection("name", 1) typeof(s) // TypeSelection |
TypeArray | Variable is an array Scripts only | let a = createArray() typeof(a) // TypeArray |
TypeHandle | Variable is a handle Scripts only | Let t = GetListHandle (w, "By Item") typeof(t) // TypeHandle |
Note Arrays and handles are only available in scripts.