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

SetNull – PB Docs 126 – PowerBuilder Library

SetNull – PB Docs 126

SetNull PowerScript function

Description

Sets a variable to null. The variable can
be any datatype except for a structure or autoinstantiated object.

Syntax

Argument

Description

anyvariable

The variable you want to set to null

Return Values

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

Usage

Use SetNull to set a variable to null before
writing it to the database. Note that PowerBuilder does not initialize
variables to null; it initializes variables to
the default initial value for the datatype unless you specify a
value when you declare the variable.

If you assign a value to a variable whose datatype is Any
and then set the variable to null, the datatype
of the null value is still the datatype of the
assigned value. You cannot untype an Any variable with the SetNull function.

Examples

This statement sets the variable Salary to null:

See Also


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