formZ SDK | 5.0 API Reference | System | Data Type

fz_type_get_long

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.
short value copied, no data lost.
unsigned short value copied, no data lost.
fzrt_unsigned_int bits copied, value > (2^31)-1 wrap to range of 2^31 to (2^32)-1.
float value converted to integer then clamped to range of -(2^31) to (2^31)-1.
double value converted to integer then clamped to range of -(2^31) to (2^31)-1.

Plugin Prototype

fzrt_error_td fz_type_get_long(

fz_type_ptr

type,

fzrt_int *

lval )

Parameters

type [Input]

A pointer to a variant

lval [Result]

A pointer to a value to be filled. Must be allocated by the caller.

Availability

5.0.0.0

See Also

fz_type_set_long,

Function Set

fz_type_fset


Defined in

fz_type_api.h