GsPropSetAsStr - geostan_1 - 2024.01

GeoStan Geocoding Suite Reference for Windows, Linux, and z/OS

Product type
Software
Portfolio
Locate
Product family
GeoStan Geocoding Suite
Product
GeoStan Geocoding Suite > GeoStan
Version
2024.01
Language
English
Product name
GeoStan
Title
GeoStan Geocoding Suite Reference for Windows, Linux, and z/OS
Copyright
2024
First publish date
1994
Last updated
2024-07-29
Published on
2024-07-29T23:01:18.924000

Sets a property where input name and value are both strings.

Note: If you intend to use the same Find property settings for all your address records, try to construct your application to set the Find properties once before processing. It is unnecessary to reset the properties again to the same values for each address record. However, if required, you can change Find property values for individual searches. Performance may be negatively affected by resetting for individual record searches. Reset Find properties between address searches only if changing the Find property value is necessary.

Syntax

GsFunStat GsPropSetAsStr(PropList* pProps, gs_const_str pszPropName, PropEnum propID, gs_const_str pszValue);

Arguments

PropList*pProps       Pointer to property list structure. Input and Output.

gs_const_str pszPropName       The string name of the property to set. Input.

PropEnumpropID       Property ID. Input.

gs_const_strpszValue       The string value of the property. Input.

Return Values

GS_ERROR

GS_SUCCESS

Prerequisites

GsPropListCreate()

Notes

This function performs the conversion to correct property enum ID and property value type. If the input property name is a NULL pointer, the property ID is for use in identifying the property instead. If both property name and property ID are present, preference is given to the property name, ignoring the property ID.

Example

GsFunStat retval;
PropList initProps;
retval = GsPropListCreate(&initProps, GS_INIT_PROP_LIST_TYPE);
retval = GsPropSetAsStr(&initProps, "GS_INIT_PASSWORD", GS_UNDEFINED_PROPID, "12345678");
retval = GsPropSetAsStr(&initProps, NULL, GS_INIT_PASSWORD, "12345678");