DlFieldGetString - 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 string data from specified field.

Syntax

intl DlFieldGetString (DlFieldId hField, const char *form, char *buffer, intl bufSize)

Arguments

hField

Handle to field, as returned by DlFieldGet. Input

*form

The form in which the data is to be returned. Input

*form Return Format
SDESC Short (32 character) description of the data.
LDESC Long (256 character) description of the data.
printf string

Returns formatted value data. Format specifications are identical to that used in the "C" function printf.

Example: "%d total population"

*buffer

Location to store the returned data. Output

bufSize

Maximum size of data to return in buffer. Input

Note: If the data returned by buffer is larger than the space allotted by bufSize, it will be truncated.

Return Value

Returns TRUE if successful, else FALSE.

Notes

DlFieldGetString returns the string data contained within a specified field in the data file. You can specify the form in which the data will be returned with the argument form. Valid forms are a printf string, "SDESC" for a short (32 character) description explaining the data, or "LDESC" for a long (256 character) description of the data. These descriptions are the same descriptions that you can get using the DlFieldGetValueAttribute function. However, while DlFieldGetValueAttribute searches the data file for a given field, DlFieldGetString will return a description for the specific data value that the record pointer is currently on, as set with DlFileSearch.

See Also

DlFileSearch, DlFieldGetAttribute, DlFieldGetNum