Hey guys, I'm working on part of an app as a collab and have become quite stuck. I was hoping someone here could lend some help. Thanks for your time.
So basically, my app is just filling out forms. All the forms are the same so I just repeat the page. On the first page, the user specifies how many forms to fill out and this value is assigned to 'i'. I then set 'j' to 1 and increase it by one with every button click until 'j' is equal to 'i', which is when the app returns to the front page.
The point of the app is to accept values for 'y', 'b' and 'c'. The form I wrote has 3 input boxes, one for each of these variables. As it is up to the user to decide how many forms (or inputs) there are, I use this in globals:
etc. (Sorry for the crude format. This is not the computer on which I wrote the original code and I cannot copy and paste.)
When it comes to the form (which is a second module at this point), I coded the 'next' button to not only increase 'j' by 1, but also make main.y(main.j) = edittext1.text. I use y(main.j) because 'j' is always going to be equal to the page number I am currently on and I need the textboxes on that page to assign values to the 'y' of that page, so that they can be easily identified.
However, when I run the application, it freezes at the point where I try to equate main.y(main.j) to the edittext. It doesn't explain why, it just highlights that line of code in yellow and the app pauses.
I'm sorry if my explanations are lame, I will be back on my computer tomorrow and will be able to post the real code. But for now, if you know what I am talking about or are interested to help me, please let me know. Thank you.
So basically, my app is just filling out forms. All the forms are the same so I just repeat the page. On the first page, the user specifies how many forms to fill out and this value is assigned to 'i'. I then set 'j' to 1 and increase it by one with every button click until 'j' is equal to 'i', which is when the app returns to the front page.
The point of the app is to accept values for 'y', 'b' and 'c'. The form I wrote has 3 input boxes, one for each of these variables. As it is up to the user to decide how many forms (or inputs) there are, I use this in globals:
B4X:
For y = 1 to i
Dim y(y) as double
When it comes to the form (which is a second module at this point), I coded the 'next' button to not only increase 'j' by 1, but also make main.y(main.j) = edittext1.text. I use y(main.j) because 'j' is always going to be equal to the page number I am currently on and I need the textboxes on that page to assign values to the 'y' of that page, so that they can be easily identified.
However, when I run the application, it freezes at the point where I try to equate main.y(main.j) to the edittext. It doesn't explain why, it just highlights that line of code in yellow and the app pauses.
I'm sorry if my explanations are lame, I will be back on my computer tomorrow and will be able to post the real code. But for now, if you know what I am talking about or are interested to help me, please let me know. Thank you.