formZ SDK | 5.0 API Reference | System | Data Type
Description
This function performs the following data type conversions:
Variant Type Conversion
fzrt_boolean TRUE -> 1; FALSE -> 0.
char value copied, no data lost.
unsigned char value copied, no data lost.
unsigned short bits copied, value > 32767 wrap to range of -32768 to 0.
fzrt_int value clamped to range of -32768 to 32767.
fzrt_unsigned_int value clamped to range of 0 to 32767.
float value converted to integer then clamped to range of -32768 to 32767.
double value converted to integer then clamped to range of -32768 to 32767.
Plugin Prototype
fzrt_error_td fz_type_get_short(
type, | |
short * | sval ) |
Parameters
type [Input]
A pointer to a variant
sval [Result]
A pointer to a value to be filled. Must be allocated by the caller.
Availability
5.0.0.0
See Also
Function Set
Defined in