I have arrays with the following characteritics:
The number of arrays is varying depending on the values, that an users enters on a form.
The length of each array is also different each time they are created.
I need a recombination of all values saved in these arrays, which would mean....
Example: If there are 3 Arrays with the length of 4 Values, 3 Values and 1 Value, I need to generate the following code:
As a result I need the following.
there any METHOD that builds/writes VB code?
I thought of the following solution:
Generating the VB code as Text and write it to a file. Then include this file at the appropriate place in my programm. But here I cannot find the include method. Would anyone know, what is a syntax for an "INCLUDE"-Method?
Second solution: Any idea about the recursion?
Thank you everybody in advance!!!
The number of arrays is varying depending on the values, that an users enters on a form.
The length of each array is also different each time they are created.
I need a recombination of all values saved in these arrays, which would mean....
Example: If there are 3 Arrays with the length of 4 Values, 3 Values and 1 Value, I need to generate the following code:
Code:
FOR array1=1 To 4
FOR array2=1 To 3
FOR array3=1 To 1
...
NEXT
NEXT
NEXT
Code:
If
Array1 has values: 1, 11, 111, 1111
Array2 has values: 2, 22, 222
Array3 has values: 3
At the end I need all the values above recombined in single lines in a text file like that:
[CODE]
3; 2; 1
3; 22; 1
3; 222; 1
3;2;11
3;22;11
3;222;11
3; 2; 111
3; 22; 111
3; 222; 111
3;2;1111
3;22;1111
3;222;1111
I thought of the following solution:
Generating the VB code as Text and write it to a file. Then include this file at the appropriate place in my programm. But here I cannot find the include method. Would anyone know, what is a syntax for an "INCLUDE"-Method?
Second solution: Any idea about the recursion?
Thank you everybody in advance!!!