two dimensional array - resolved!!
Posted: Wed Mar 30, 2022 10:35 am
I need to make an array with two dimesion
type oBtnNum[10,9 ]
in order to have the cCaption from 1 to 90
each row ten number
but at the same time having each button recognizable for example
oBtnNum[2,1 ] is the btn with the cCaption number 11 ( Col 1,Row 2)
How do it ?
I made
for k=1 to 10
For j=1 to 9
@ nrow,ncol BTNBMP oBtnNum[k,j] PROMPT "C"+ltrim(str(k))+"R"+lTrim(str(j)) ;
SIZE xWidth,xHeight FLAT PIXEL OF oDlg NOROUND
nrow+=xHeight +xSpace
next
ncol+=xWidth +xSpace
nrow:= 25
next
but the the oBtnNum[k,j] is no good
type oBtnNum[10,9 ]
in order to have the cCaption from 1 to 90
each row ten number
but at the same time having each button recognizable for example
oBtnNum[2,1 ] is the btn with the cCaption number 11 ( Col 1,Row 2)
How do it ?
I made
for k=1 to 10
For j=1 to 9
@ nrow,ncol BTNBMP oBtnNum[k,j] PROMPT "C"+ltrim(str(k))+"R"+lTrim(str(j)) ;
SIZE xWidth,xHeight FLAT PIXEL OF oDlg NOROUND
nrow+=xHeight +xSpace
next
ncol+=xWidth +xSpace
nrow:= 25
next
but the the oBtnNum[k,j] is no good