formZ SDK | 5.0 API Reference | System | Runtime Library (FZRT) | File
Description
This will create an OS Type constant from a string. The first four characters from the string are used to create a constant that can be used as a file type for the dialog filter suitable for the MacOS. If the string is shorter than 4 characters, the constant contains 0s in the low bytes. i.e. "TXT" -> 'TXT\0' The string must be a null terminated.
Plugin Prototype
fzrt_error_td fzrt_file_dlg_filter_set_ftype(
char * | type_string, |
ftype ) |
Parameters
type_string [Input]
pointer to a C string
ftype [Result]
pointer to an fzrt_ostype that will receive the file type constant
Returns
FZRT_NOERR is successful, error number otherwise
Availability
5.0.0.0
See Also
Function Set
Defined in