Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

SetDynamicParm – PB Docs 2019 – PowerBuilder Library

SetDynamicParm – PB Docs 2019

SetDynamicParm

PowerScript function

Description

Specifies a value for an input parameter in the
DynamicDescriptionArea that is used in an SQL OPEN or EXECUTE
statement.

Only for Format 4 dynamic SQL

Use this function only in conjunction with Format 4 dynamic SQL
statements.

Syntax

Argument

Description

DynamicDescriptionArea

The name of the DynamicDescriptionArea, usually
SQLDA.

index

An integer identifying the input parameter descriptor in
which you want to set the data. Index must be less than or equal
to the value in NumInputs in DynamicDescriptionArea.

value

The value you want to use to fill the input parameter
descriptor identified by index.

Return value

Integer.

Returns 1 if it succeeds and -1 if an error occurs. If any
argument’s value is null, SetDynamicParm returns null.

Usage

SetDynamicParm specifies a value for the parameter identified by
index in the array of input parameter descriptors in
DynamicDescriptionArea.

Use SetDynamicParm to fill the parameters in the input parameter
descriptor array in the DynamicDescriptionArea before executing an OPEN or
EXECUTE statement.

Examples

This statement fills the first input parameter descriptor in SQLDA
with the string MA:

This statement fills the fourth input parameter descriptor in SQLDA
with the number 01742:

This statement fills the third input parameter descriptor in SQLDA
with the date 12-31-2002:

See also

GetDynamicDate

GetDynamicDateTime

GetDynamicNumber

GetDynamicString

GetDynamicTime

Using dynamic
SQL

OPEN Cursor


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x