formZ SDK | 5.0 API Reference | System | Runtime Library (FZRT) | Basic

# fzrt_fzr_get_rsrc_cnt

Description

Gets the number of resources of specified type in the resource file. This will return the number of resource of the requested type in the primary resource file only.

Plugin Prototype

fzrt_error_td fzrt_fzr_get_rsrc_cnt(

const fzrt_fzr_ref_td | fzr_ref,
fzrt_unsigned_int | type,
fzrt_unsigned_int * | cnt )

Parameters

fzr_ref [Input]

reference to the resource file

type [Input]

type of resource to count ( currently only FZRT_FZR_STRING_ID or FZRT_FZR_MENU_ID)

cnt [Result]

- pointer fzrt_unsigned_int contains number of resources of type

Returns

FZRT_NOERR if successful, error ID otherwise.

Availability

5.0.0.0

See Also

fzrt_fzr_open, fzrt_fzr_get_rsrc_ind_ID

Function Set

fz_fzrt_base_fset

Defined in

fzrt_api.h