0 Members and 2 Guests are viewing this topic.
mstm:={ion,charge,sznm}
For x,1,dim(mstm)Disp mstm[x][3]EndFor
Ah ok. OS 2.1 should have most recent functions then. As for the BASIC language, it is more like the TI-89, but it is much more limited. Basically it doesn't have Getkey, Pixel-On/Off, Line() and Output/Text/Locate() equivalents, so the language is not suitable for people who are using their calculator for other purposes than school (such as gaming).EDIT: Your post vanished
TI's stance with this calc is that the more locked up it is to games/utilities the better it will be. We have programs like Ndless that let us run C/Asm programs on our calcs. If TI doesn't remove it before they rerelease 3.x we have Lua, but our guesses are that it was unintentional to give it to us
For displaying all of the values, I think a for loop would be best. I am not 100% sure that this will work with an array of more than one dimension (and I can't test now ).Code: [Select]For x,1,dim(mstm)Disp mstm[x][3]EndForFor the string issue, do you want to find the index of a certain substring in a string?First, to convert from a number to string, use "string(number)" and to do the opposite, use "expr(string)"To find the index of a substring in a string, use "inString(string,substring)", which will return the index of the substring if it is in the string (with the first index being "1", not "0").
{xx,yy}=dim(mstm)Returns:{xx=3,yy=64}
indexd:=0While indexd<dim(ion)indexd:=indexd+1disp mstm[indexd]EndWhile
First, to convert from a number to string, use "string(number)" and to do the opposite, use "expr(string)"To find the index of a substring in a string, use "inString(string,substring)", which will return the index of the substring if it is in the string ...
C and ASM are different languages. They're much harder to learn than BASIC and must be programmed on a computer. Ndless will run on OS 1.7, 2.0.1 and 2.1.0. I don't think it will run on OS 2.1.1, though. You need to download Ndless 2.0 Beta from the Ndless sub-forum here.I don't think you need to worry about those languages if you are only planning to use the calculator for educational purposes, though.