Xbasic

A5_GetArgumentValue Function

Syntax

dim result as c = a5_getArgumentValue(C argName)

Arguments

argNameCharacter

Name of argument to evaluate

Returns

resultCharacter

Returns the value of the argument, if the argument exists. If the argument doesn't exist, returns a blank string.

Description

Used in report writer to extract values of arguments at runtime so that they can be included in the report itself.

Discussion

Used in report writer to extract values of arguments defined in the report's data source at runtime. This function can be used to insert an arguments value into a Report, Letter, or Label using a calculated field.

argVal = a5_getArgumentValue("Country")
a5_getArgumentValue() used to create a calculated field with the value of the "Country" argument
a5_getArgumentValue() used to create a calculated field with the value of the "Country" argument