DlFieldGet - demographics_library - 2024.01

Demographics Library Reference for Windows and UNIX

Product type
Software
Portfolio
Locate
Product family
GeoStan Geocoding Suite
Product
GeoStan Geocoding Suite > Demographics Library
Version
2024.01
Language
English
Product name
Demographics Library
Title
Demographics Library Reference for Windows and UNIX
Copyright
2024
First publish date
1994
Last updated
2024-05-17
Published on
2024-05-17T02:16:20.391253

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));