nox
persistent changes to variables across files
i have a few variables in my main file that im trying to read from/write to in the subforms i have. i can load the variables with the values that were set in the main file just fine across every subform, but writing to them is a different story. you can see what im trying to do here (https://github.com/svfeplvce/svedit). the specific variables im trying to read/write are curPoke, curTrainer, pokemonEdit, pokeDataEdit, plibEdit, and trainerEdit. whats supposed to happen is whenever a user switches to a different subform, the values from the last form stay in the variable. what actually happens is it keeps the changes from the first form when displaying data in the first form, although when the user tries to save, it saves the original values. what am i doing wrong here?
32 replies
Hiding items in combo box?
sorry in advance if this doesnt make sense, i have no idea how to word my issue
basically what my program is trying to do at the moment is read/write data from an array inside a json file, so the indexes of the items im editing matter. what im trying to figure out is how to hide certain items from a combobox that basically selects which item from the array to edit, but every solution ive seen so far would mess up what i have right now (which is basically taking the index of the current item in the combobox and taking the item from the array in that index). is it possible to hide the items i dont need while keeping their index values or will i need to find some janky workaround?
2 replies