Syntax 3: For JSONPackage objects
Description
Deletes all of the keys.
Applies to
Syntax
|
1 |
objectname.Clear ( ) |
|
Argument |
Description |
|---|---|
|
objectname |
Name of the JSONPackage object |
Return value
Integer. Returns 1 if it succeeds and -1 if an error
occurs.
Examples
This example deletes all of the keys and then calls KeyCount to
check if all keys are deleted:
|
1 2 3 4 5 6 7 8 |
long ll_KeyCount JsonPackage lnv_package lnv_package = create JsonPackage lnv_package.SetValue("d_employee", dw_employee) lnv_package.Clear() // ll_KeyCount will return 0 ll_KeyCount = lnv_package.KeyCount() |
See also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest