0 Members and 1 Guest are viewing this topic.
No, you have to copy data. So more like this:Code: [Select]Copy("TEST",GetCalc(Data,4,[sup]T[/sup],0,0),4
Copy("TEST",GetCalc(Data,4,[sup]T[/sup],0,0),4
Quote from: calcdude84se on November 28, 2010, 08:17:05 pmNo, you have to copy data. So more like this:Code: [Select]Copy("TEST",GetCalc(Data,4,[sup]T[/sup],0,0),4Code tags (and typos) murdered this. Here's what it should look like:Copy("TEST",GetCalc(Data(4,TAns,0,0),4),4)It's a bit cluttered, though.
Well, for one thing that code is a little different from mine (missing a ,4). But on the other hand, I just tried it now, and there is a bit of a glitch with Axe. This code only works if Ans was previously a string. The reason is that when Axe looks for an existing Ans variable to delete, it's looking for a string (and type matters because it's using chkfindsym). If it searched using findsym, it would work (but would fail for programs and appvars).
Data(4,ᵀAns,0,0)→Str0ANDelVar Str0ANCopy("TEST",GetCalc(Str0AN,4),4)
Quote from: calc84maniac on November 28, 2010, 10:19:51 pmWell, for one thing that code is a little different from mine (missing a ,4). But on the other hand, I just tried it now, and there is a bit of a glitch with Axe. This code only works if Ans was previously a string. The reason is that when Axe looks for an existing Ans variable to delete, it's looking for a string (and type matters because it's using chkfindsym). If it searched using findsym, it would work (but would fail for programs and appvars).A simple fix that should always successfully create Ans as a string:Code: [Select]Data(4,ᵀAns,0,0)→Str0ANDelVar Str0ANCopy("TEST",GetCalc(Str0AN,4),4)
By the way, isn't Data(4,TAns,0,0) simply "Ans" in quotes? That should work, if it doesn't then its a bug I need to fix.
Did you try that on the calculator though? It should substitute it for $04,$75,$00 like I do with picture variables, lists, and other OS variables. Tokens in quotes don't always map to the original token values if they don't have corresponding ascii values. But I suspect that it isn't working for some reason since no one seems to be using it. I'll have to fix that next version.