G
Guest
I am have defined a 3x3 table in a form and the user can place a value in
each cell. I need to copy the values from the 9 table cells into global
variables (for later use).
The "naming convention" I used for each cell of the table is CELL_CxRz
(where Cx is a Column number and Rz is a Row number). The convention I use
for the global variables is GBL_CxRz.
I can build variables using two FOR loops for the column and row numbers.
DIM CELLNAME, GBLNAME as STRING
FOR ROW=1 to 3
FOR COL=1 to 3
CELLNAME = "CELL_C" & COL & "R" & ROW
GBLNAME = "GBL_C" & COL & "R" & ROW
' *** HERE IS THE PROBLEM!
' *** I WANT TO DO SOMETHING LIKE:
(GBLNAME) = ME(CELLNAME)
'*** The ME(CELLNAME) works fine
'*** I do not have the correct syntax for storing the contents of
ME(CELLNAME) into the variable contained within GBLNAME
NEXT COL
NEX ROW
Can anyone help?
Thanks, in advance
Rich
each cell. I need to copy the values from the 9 table cells into global
variables (for later use).
The "naming convention" I used for each cell of the table is CELL_CxRz
(where Cx is a Column number and Rz is a Row number). The convention I use
for the global variables is GBL_CxRz.
I can build variables using two FOR loops for the column and row numbers.
DIM CELLNAME, GBLNAME as STRING
FOR ROW=1 to 3
FOR COL=1 to 3
CELLNAME = "CELL_C" & COL & "R" & ROW
GBLNAME = "GBL_C" & COL & "R" & ROW
' *** HERE IS THE PROBLEM!
' *** I WANT TO DO SOMETHING LIKE:
(GBLNAME) = ME(CELLNAME)
'*** The ME(CELLNAME) works fine
'*** I do not have the correct syntax for storing the contents of
ME(CELLNAME) into the variable contained within GBLNAME
NEXT COL
NEX ROW
Can anyone help?
Thanks, in advance
Rich