0 Members and 1 Guest are viewing this topic.
Call it again.
is there a way to store variable inside a code or modify the code itself using ONLY ti basic?
Quote from: Thomas the Death Machine on October 28, 2014, 02:07:41 pmis there a way to store variable inside a code or modify the code itself using ONLY ti basic?If you only want to store variables between runs of the program, I'd suggest you look into lists. You can create lists with custom names, and they can hold a lot of information (999 numbers to be exact)If you do 55->dim(LLIST), then you create a list named LIST that can hold 55 numbers. If the list already exists, it will be cropped to the correct size with zeros being added for elements that didn't exist previously (this also means that executing this code when the list already exists doesn't modify the list). A newly created list will be automatically filled with zeros.An alternate way of creating a list is like this:{0,1,2,3,4,5,6,7,8,9}->LLIST, which will store all those elements into a new list of the correct size. If the list already existed, it will be completely overwritten.Every one of those can be used as a variable like this:LLIST(5) will return the value of the variable, kinda like simply using A. You can also modify variables like this: 8->LLIST(5)It even works when you use a variable inside the brackets: LLIST(A) will return the Ath element in the list.
What does BASIC stand for? Beginners something?