Determines if Value is acceptable for the type indicated by typeName. The typeName() function is a complementary function that returns the type of a value.
typeCheck ( value As Any, _
TypeName As Name ) As Boolean
Argument | Type | Description |
---|---|---|
value | Any | Input value to test; this argument is permitted to be NoValue . |
TypeName | Name | Data type name, such as Number , String , Part , etc. |
Intent >typeCheck(1, :number)
--> True
Intent >typeCheck(:NNNN, :string)
--> False
Intent >typeCheck(Root, :part)
--> True