0 Members and 1 Guest are viewing this topic.
i didnt double post or does it mean i post 2 times after eachother ?? Than srry about that i thought it mean you post 2 times the same
If your "list" contains zeros, then you will need to make a counter variable that simply stores the length of the array. For example, L could be the length, and the array would be in L1. Then, whenever you want to append data to the array:myNum->{L + L1}L++To read the last element:{L-1+L1}To remove an element, you can either write the last element as zero and then decrement the length counter, or simply decrement the length counter if you know that you won't be reading from after the array.
My lvl editor works but if i want to get values from my list it say invalid dim is there a command so that i can strore it and acces from my caculator OS
But what is the command to store in your appvar
GetCalc("appvTEST",2)->A //A is the pointer to your appvar now!10->{A} //stores 10 in appvar TEST21->{A+1} // stores 21 in appvar TESTdisp{A}>Dec //Displays 10 in this casedisp{A+1}>Dec //Displays 21 in this case
GetCalc("appvNAME",[size of data you need])->A //appvar NAME is created with the amount of data you need and stored to pointer A.Copy([your data],A,[size of your data]) //Copy's the size of your data from your data into pointer A (appvar NAME)
Code: [Select]GetCalc("appvNAME",[size of data you need])->A //appvar NAME is created with the amount of data you need and stored to pointer A.Copy([your data],A,[size of your data]) //Copy's the size of your data from your data into pointer A (appvar NAME)EDIT: