Home > Software engineering > Beginners, urgently needs to solve the problem of array, very urgent, please speed to save!
Beginners, urgently needs to solve the problem of array, very urgent, please speed to save!
Time:10-07
As is shown in
Dynamic two-dimensional array, first to define a number of lines is based on a single borrower, the column is not null judgments, whereas the number of columns in red circle part to 9 columns per ~
Then to cycle to form corresponding to each row circle in the current column data assign values to the definition of two-dimensional array, How to write code, please?
CodePudding user response:
In VB6, if changing the multi-dimensional dynamic array size, Need to keep the previous data, can only change the size of the final d, According to your applications, data rows are dynamic, That the two dimensional array should be defined like this: Dim arrData () as string . ReDim arrData (columns and rows) Here "column" for 8 (0 ~ 8, a total of nine column number) And "line" can, as required for dynamic change,
CodePudding user response:
What conditions? If it is "form" of the environment, directly from the form number is more convenient?