0 Members and 3 Guests are viewing this topic.
Will it get stored back into the appvar after you close the program?
1->{L1}:1->{L1+1} //some initialization, if appvar doesn't exist these will not changeIf GetCalc("appvDATA",Y0) //checks to see if appvar exists and is in archive{Y0}->{L1} //store data from the appvar into some free RAM{Y0+1}->{Y0+1}End...Program that manipulates data in {L1} and {L1+1}...Unarchive "appvDATA" //unarchives it, if it doesn't exist (still) it does nothingGetCalc("appvDATA",2)->S //overwrites the previous appvar that may or may not have existed{L1}->{S} //store data into appvar{L1+1}->{S+1}Archive "appvDATA" //archives itReturn //ends the program
Just a question but why are you using Y0 and what is it?
Quote from: Omegaxis213 on November 18, 2014, 06:38:49 pmJust a question but why are you using Y0 and what is it?As far as I know it's the only way in Axe to read data from the archive, if you wanted to unarchive the appvar first, you could store it to some pointer and access it from that. But otherwise if the data is only accessible from the archive with the Y tokens. (Y0-Y9)[somebody correct if this is wrong]