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!

Multi-dimension dynamic arrays

Status
Not open for further replies.

Negator

Programmer
Oct 4, 2003
33
RU
Hello friends!

Is it possible to create a 2-dimension dynamic array in PowerBuilder? If yes, how to do this?

Thank you!!
 
Please disregard my second example declaration above (it does work in other languages such as CA-Clipper). You may declare a multi-dimensional array as under:

char lc_Data[3,2]
//
lc_Data[ 1,1 ] = 'A'
lc_Data[ 1,2 ] = 'B'
lc_Data[ 2,1 ] = 'A'
lc_Data[ 2,2 ] = 'A'
lc_Data[ 3,1 ] = 'A'
lc_Data[ 3,3 ] = 'A'

---
PowerObject!
-----------------------------------------
PowerBuilder / PFC Developers' Group
 
I need to declare DYNAMIC array... like

integer DynArray[]

but 2-dimensional. The only solution I found is to use one-dimensional array instead... :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top