0 Members and 1 Guest are viewing this topic.
GetCalc("appvMAP",Y1)->XGetCalc("appvT1",202)->AR*202+X -> XCopy(X,A,202
Quick question: am I trying to read an appvar from Archive, and it's going very unsuccessfully. Here is what I'm doing:Code: [Select]GetCalc("appvMAP",Y1)->XGetCalc("appvT1",202)->AR*202+X -> XCopy(X,A,202Am I using the pointer to the archived var in the wrong way?
GetCalc("appvMAP",Y1)Copy(R*202+Y1,GetCalc("appvT1",202),202
You can't use file pointers the same way you use regular ones . The getcalc operation with file pointers doesn't return a pointer to the appvar like with appvars that are in RAM because objects in archive need three bytes, not two to access them. You need a byte for the page that the object is on and two bytes for its position within the page. Because of this, the GetCalc() operation doesn't return a pointer that you can store to a variable like with objects in RAM. So instead of using the value returned by the getCalc operation, you just use the file name (eg Y1, Y2, etc). Note that (i think) you can't do any math besides addition or subtraction with them- no Y1*2 or anything like that. Anyway, the correct (and optimized) way to do what you are trying to do isCode: [Select]GetCalc("appvMAP",Y1)Copy(R*202+Y1,GetCalc("appvT1",202),202