Author Topic: 3 Questions  (Read 4043 times)

0 Members and 1 Guest are viewing this topic.

Offline imPersonator

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 17
  • Rating: +0/-0
    • View Profile
3 Questions
« on: June 02, 2010, 04:50:18 pm »
1. Is there a way to do string comparisons besides using For loops and checking each byte?
2. Is there a way to store strings into the Ans variable?
3. I use the CalcUtil app so I can run programs from the program menu.  When I run programs, sometimes they will require the Enter key to exit, but I have to barely tap the enter key or else it runs the program again.  Or, if I have to press mode, it brings up the mode menu.  Is there a way to stop this (in Axe program source)?

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: 3 Questions
« Reply #1 on: June 02, 2010, 05:19:04 pm »
1. Is there a way to do string comparisons besides using For loops and checking each byte?
2. Is there a way to store strings into the Ans variable?
3. I use the CalcUtil app so I can run programs from the program menu.  When I run programs, sometimes they will require the Enter key to exit, but I have to barely tap the enter key or else it runs the program again.  Or, if I have to press mode, it brings up the mode menu.  Is there a way to stop this (in Axe program source)?
1) No
2) No
3) Yes. :)  You can add a loop at the end that keeps looping while you have a key pressed down, so when the program ends no key is pressed.  This loop would look like:
While getKey(0)
End

Good luck on your programs! :D
« Last Edit: June 02, 2010, 05:19:16 pm by ztrumpet »

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: 3 Questions
« Reply #2 on: June 02, 2010, 07:51:48 pm »
The first two might be implemented eventually, making them "not yet"s (first one with CPIR as the underlying op-code, the second one much more likely than the first when Quigibo finally gets around to implementing more support for TI-OS variables.)
"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Spoiler For "PartesOS links":
I'll put it online when it does something.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: 3 Questions
« Reply #3 on: June 07, 2010, 04:20:10 am »
Also, in games, I advise against using the ENTER key, because most people prefer when all game controls are at the top of the calc. Usually you'll have 2nd instead of ENTER and ALPHA instead of (-). CLEAR is used often for exiting, though.