getBinaryType

Syntax getBinaryType (value)

Params value is a binary Frontier object.

Action Determines the specific binary datatype of value.

Returns The binary datatype of value.

Examples x = binary ("Cool stuff!");
getBinaryType (x)

   » TEXT

Notes All binary objects in Frontier contain both data and a type. The type of all binary objects, which you can obtain with the typeOf verb, is 'data'. This verb determines which specific type of data a binary object contains.

When you coerce a non-binary value to binary, the resulting value has an embedded type that corresponds to the value that would be returned by the typeOf verb applied to the original value.

This verb's primary use involves values received from outside Frontier via pasting or an IAC dialog. When Frontier receives data it does not understand, it creates a binary value with a binary type determined by the clipboard or descriptor type of the

data.

See Also setBinaryType

typeOf

Discuss