Returns handle for specified field.
Syntax
DlFieldId DlFieldGet (DlFileId hfile, const char *fname)
Arguments
hfile
Handle to file object, as returned by DlFileOpen. Input
*fname
Field name. Input
Return Value
Returns handle to specified field if successful, else NULL.
Notes
DlFieldGet takes a field name and returns the corresponding handle.
See Also
DlFieldGetN
Example
// This code fragment gets a handle for the field called "DMA"
// and then gets short and long field descriptions.
DlFieldId field = DlFieldGet(hFile,"DMA");
char temp[256];
DlFieldGetString(field, "SDESC", (char*)temp, sizeof(temp));
DlFieldGetString(field, "LDESC", (char*)temp, sizeof(temp));