Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Application Server

SetLongParameterByName()

  • Last UpdatedOct 13, 2022
  • 1 minute read

Use the SetLongParameterByName() method to configure a long parameter by the name encoded into the text of a SQL statement using the @ character.

Syntax

result SetLongParameterByName (
string ParameterName,
object ParameterValue,
aaDBParameterDirection ParameterDirection)

Parameters

ParameterName

The string identifier that is used in the SQL statement.

In the following SQL statement the name of the output parameter is "ProdID"

"SELECT ProductID, SUM(WorkOrderID)

AS OrderCnt

FROM Production.WorkOrder

WHERE ProductID = @ProdID

GROUP BY ProductID"

ParameterValue

An integer value or a valid ArchestrA reference string. For example:

  • 10

  • me.ProductID

  • Null - Output

ParameterDirection

For possible values, see aaDBParameterDirection.

Example

SetLongParameterByName ("ProdID",me.ProductID,aaDBParameterDirection.Output)

TitleResults for “How to create a CRG?”Also Available in