So i wrote some code for a ti-89...

(Pastebin link because i suck)
https://pastebin.com/pCqHZmfy

So it gives an error when it goes to “return i”
Looking up the error code in a book, it means that i was not defined when it was returned.
I have no idea why this is.

(The code prettymuch is made to find a certain string in a list, skipping every other one, and returning the index where it was found, or -1 if not found. The other stuff is so it can match it without needing the full string, but using only a part instead)
(Optimizations are also welcome)

Can somebody help? Everything else works so far....
Do you need a "then" after the If?
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement