ProSoft Technology MVI69-ADM User Manual
Page 178

Application Development Function Library - ADM API
MVI-ADM ♦ 'C' Programmable
Developer's Guide
'C' Programmable Application Development Module
Page 178 of 342
ProSoft Technology, Inc.
February 20, 2013
ADM_FileGetInt
Syntax
unsigned int ADM_FileGetInt(ADMHANDLE adm_handle, char *SubSec, char *Topic);
Parameters
adm_handle
Handle returned by previous call to ADM_Open
SubSec
Subsection denoted by [ ].
Topic
The individual line item under the subsection.
Description
ADM_FileGetInt allows an application to fetch an integer topic under a
subsection of a configuration file located in flash. This function is valid for MVI94
only.
adm_handle must be a valid handle returned from ADM_Open.
SubSec must be a pointer to the subsection.
Topic must be a pointer to the topic.
Return Value:
Integer data.
[Module]
Maximum Register : 3996 #Maximum number of database registers
If the subsection is [Module] and the topic is Maximum Register, then the value
after the colon will be returned. In this example 3996 will be returned from the
function call.
Example
Get the data from
[Module]
Maximum Register: 3996
The return value will be 3996.
ADMHANDLE adm_handle;
module.max_regs = ADM_FileGetInt(adm_handle, "[Module]", "Maximum Register");
See Also
ADM_FileGetString (page 177)
ADM_FileGetChar (page 179)