Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to empty an array

Status
Not open for further replies.

kidmar

Programmer
Mar 2, 2006
17
IT
Hi.
I need to empty a variable-size array, just as if it has just been declared.
for example:
1) integer li[]
2) li[] = {1,5,9}
3) ....
After this I want li[] array as it was after point 1, with upperbound(li[]) = 0.
Is it possible?
Thank you!

Powerbuilder 9.0.1 build 7119
 
Declare a second array and use:

integer li_null[]
.
.
.

li = li_null


Matt

"Nature forges everything on the anvil of time
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top