Hi !
I need some help.What im trying to do:
I want to store some kind of XYZ positions and their names in a file that should be in the same directory as the application is.Then i want my app to read them, and put the names to a dropdown (then when i will select them it will set the XYZ positions)
So if the file called like "xyzpositions.txt" has the value like this:
Code:
Name(Position number 1) X(-2057,281) Y(237,2792) Z(35,40573)
Name(Position number 2) X(-1725,082) Y(196,1296) Z(3,554688)
Name(Position number 3) X(-1826,597) Y(173,6213) Z(65,14328)
It would add those items to the DomainDropDown, "Position number 1" "Position number 2" and "Position number 3"
The code that is in the txt file may be different, but i want to keep it easy to edit manually (it wont be saved in the app, but it can be added by the user)
And if he puts 10 positions to the text file, it has to add 10 items called same as the positions etc etc.
And then if i select the position for example.. 3 then it sets the variable values:
posX = X() of position 3 from the text file
posY = Y() of position 3 from the text file
posZ = Z() of position 3 from the text file
I have no idea how to do this
Thanks in advance