First of all, sorry for my poor English. I will try to understand me best.
I have a problem with the software I'm creating.
It is a tool to insert buttons and images. The names and pictures I keep in a file "ini" as follows:
X = 32
Y = 32
X = 32
Y = 64
Path = D: \ Software \ Image1.jpg
Path = D: \ Software \ Image2.jpg
Ok. I downloaded an example to handle the "ini" and all is well, but when editing buttons and pictures ... I can not save the information.
I have a global variable called "Button_ID" where I store the ID of the buttons are added and each button has a variable named "ID"
I do the following:
- Button "Create" was clicked?
Add 1 to GlobalVariable "Button_ID"
Set value to ID("Button") = GlobalVariable "Button_ID"
And each button has a saved ID. But when I do the loop for storing data that has all the buttons on the form, I do not know how.
So I'm doing:
- Button "Save" was clicked?
Create_Loop("Saving_Data") (Button_ID times)
- Loop_Index("Saving_Data") == ID("Button")
- Set XPos("Button") to item "X" from group "Button"+Str$(ID)
I do not in any way, as it always variable ID button is 4 (If I have 4 buttons)
It is always saved the last button created variable in this example 4.
In which way could iterate through the buttons you created in dynamic form to save your data in the file?
Thank you very much for your time!