Utility Functions and C Language Reference > Utility Functions: C Language (lr_) > Alphabetical Listing > lr_paramarr_idx

lr_paramarr_idx

Returns the value of the parameter at a specified location in a parameter array.

C Language

char * lr_paramarr_idx( const char * paramArrayName, unsigned int index);
Example: lr_paramarr_idx and lr_paramarr_len String and Parameter Functions

Arguments

Name Comments
paramArrayName The name of the parameter array from which to return the value.
index The one-based position of the parameter in the array.

lr_paramarr_idx returns a string containing the value of the parameter at the specified position in a parameter array. If the parameter does not exist, the return value is the concatenation of "{", paramArrayName, "_", index, and "}", for example, "{myParam_4}".

Return Values

A string buffer containing the value. On error, returns NULL.

Parameterization

Standard parameterization is not available for this function.

Concept Link IconSee Also