Sorry, the first line:
myarray[0][0] = 'whatever';
myarray[1][0] = 'whatever';
myarray[2][0] = 'whatever';
myarray[3][0] = 'whatever';
myarray[4][0] = 'whatever';
myarray[5][0] = 'whatever';
Erick
i think this could help u
#define oMAX 6 string myarray[][oMAX]; void addData() { int iIndex = ArraySize(myarray)/oMAX; ArrayResize(myarray,iIndex+1); myarray[iIndex,0] = ""; myarray[iIndex,1] = ""; ... myarray[iIndex,5] = ""; }
symr:
i think this could help u
Thanks!!!
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi,
I have a String Array [6][50] .
When I start the program, the array is empty.
So then I enter the first line:
myarray[0][0] = 'whatever';
myarray[0][1] = 'whatever';
myarray[0][2] = 'whatever';
myarray[0][3] = 'whatever';
myarray[0][4] = 'whatever';
myarray[0][5] = 'whatever';
In a future moment I want to insert a second line, then third and so on.
How do I know which one is the next line available?
Is there a way to count how many lines are being used in the array?
Thanks,
Erick