HOME >> Tutorials >> Tips & Tricks |
Tips & Tricks
Hey everybody! Here's a bunch of tricks I know and I'd like to share with you all.
All code is underlined
* in front means works for 83+ ONLY.
Delaying Program: Have you ever wanted to just delay your program on a screen for just a certain amount of time? Well you can. Just use a loop command.
Ex. For(A,0,400:End
Change 400 to however long you want it. Experiment a bit with it.
How Many Digits in the #: You can also find out how many digits are in a number like 100 is a 3 digit number. This is a very useful trick. You can store it to a variable for later use. Be careful with negative numbers. You might want to add a abs( command at the beginning if you have negative numbers.
Ex. int(log(#)+1
Pt-On: There are easy ways to make a cross and/or a little 3*3 square on the graph if you need to. X and Y are the coordinates
Box Ex. Pt-On(X,Y,2
Cross Ex. Pt-On(X,Y,3
*Using Big Text: Did you know that there are two different sized fonts you can use on the graph? Well there are. Use this to get the bigger font (it's the same font as the one you use on the homescreen).
Big Font Ex. Text(-1,X,Y,"TEXT
Turning of Pixels FAST!: There are different ways you can use to turn pixels off faster than doing it one by one. Try these! Put spaces in for the text commands
Turn Off Line Ex. Line(X1,Y1,X2,Y2,0
Small Text Ex. Text(X,Y,"_______" (For each space it turns off 5 vertical pixels)
*Large Text Ex. Text(-1,X,Y,"______" (For each space it turns a 6*8 block off)
Displaying Consecutively: Have you ever wanted to display a string and then your own words after that? You can do this with any word display command but with the display command it does it a line down. And don't get rid of the quotation marks at the end.
Ex. "BOBStr1:Output(X,Y,Str1,"_IS COOL"
Storing Expressions: You can store expressions so you save memory. Store you expression to a string if you need to use that expression a lot in your program.
Ex. "abs(int(log(A)+1Str1
Then when you need it, define the variable being used and add this and store it to whatever variable you want.
Ex. expr(Str1A
Prompt Trick: The command Prompt is used to let the user input a number for the prompted variable. You can prompt numerous variables like this:
Ex. Prompt X,Y,Str1
You can also prompt for a Y? variable if you prompt for a string then use string>equ( command.
More Than 27 Variables!: I know you all know about lists and matrices but if you need more variables you can use all those window variables (hit vars and then enter) and also I'm pretty sure you can use the finance variables (hit apps and then enter and go over to vars). You can also use them as characters! I like the thick N.
Lowercase Letters and Cool Characters: Did you know you can use lowercase letters without assembly language. Here's how I make "Staind234".
Ex. Output(1,1,"Staint(
Output(1,6,"d234
The int( is used to get the lowercase i and n. Then I just output "d234" over the "t(". It runs it so fast you never see the "t(". There are also some accessible lowercase letters in the vars/statistics menu. And if you look around you can find some cool characters to use in different functions that you can use this trick on. Like the ">dec" character. Try it!
Get Rid of the "Done": For some reason I just don't like having the calc display "Done". Well here's how to rid your self of it.
Ex. ClrHome:Output(1,1,"
That's it. Just clear the screen and run the output command even if you don't output anything.
Making Line and Pixel Easier to Use: I'm sure you all know this one, but maybe not. Then you can use the same coordinates (except make the x's negative with lines) for lines and points as well as text and pixels.
Ex.
0Xmin
0Ymax
94Xmax
-62Ymin
Have a nice trick that's not on here? Well send it to me at Staind234@hotmail.com! I'll put it on the tutorial and give you credit for giving it to me. Hope you learned some new stuff! Later!
By: Sean Sartell