IUSetIntl
IUSetIntl
Store data in international resource (type 'INTL') short fRefNum ; file reference as obtained via OpenResFile short rsrcID ; the ID of a type 'INTL' resource (0 or 1)
IUSetIntl adds an international resource to an open resource file or replaces the data of an existing one.
fRefNum identifies the resource file to modify. It may be obtained via
get the reference of the application's resource file) or it may be 0 to
specify the system resource file.
rsrcID identifies the resource (type 'INTL') to read. It is one of:
0 intlHndl should lead to an Intl0Rec structure (currency, time,...).
1 intlHndl should lead to an Intl1Rec structure (names of months, days, date-formatting options, etc.)
intlHndl is a Handle leading to data you wish to store in a resource. It leads to structure. Use IUGetIntl(rsrcID ) to get access to the existing data.
Notes: IUSetIntl causes the 'INTL' resource whose ID is rsrcID in the open resource file fRefNum to be updated and written to disk.
If all you want to do is temporarily change one or two fields of the
resource, use IUGetIntl to obtain a handle to the structure and make changes via in direction. See IUDatePString for an example of this technique.