Calculator Community > Casio Calculators

Getting started in Casio-Basic? You can ask here.

<< < (23/25) > >>

fxdev:
Here's my solution (Replace '_' by ' '):


--- Code: ---"HELLO WORLD!________
_THIS IS A TEST______
_PROGRAM!____________
_BUT IT TAKES________
_WAY TOO MUCH________
_BLEEPING SPACE._____
_OPTIMIZE PLZ!_______
_"->Str 1
ClrText:0->I
Do:I+1->I:I>7=>1->I
For 1->J To 7
I=1=>Black Locate 1,J,Str 1
I=2=>Blue Locate 1,J,Str 1
I=3=>Red Locate 1,J,Str 1
I=4=>Magenta Locate 1,J,Str 1
I=5=>Green Locate 1,J,Str 1
I=6=>Cyan Locate 1,J,Str 1
I=7=>Yellow Locate 1,J,Str 1
StrRotate(Str 1,21)->Str 1
Next
LpWhile Getkey=/=47
ClrText:" "

--- End code ---

DJ Omnimaga:
Wait I thought Locate had no word-wrapping? ???

EDIT Actually nvm I didn't notice the sub-string command stuff.

EDIT That works, thanks :D

EDIT THat string rotate command is just cool! O.O

z80man:
I like how casio BASIC has all those string based functions similar to the high level ones found in languages such as C. I find them useful for heavily text based programs such simple CAS's and other math/science programs.

DJ Omnimaga:
If it wasn't for the fact Locate lacks word-wrap, some of them could be very handy for scrolling.

sjasogun1:
I've been attempting to make a 'protected' program. I want people to be able to run it at any time but I want to prevent them from transferring the program(s) to other calculators. Unfortunately the built-in password function of the fx-9860 GII only prevents one from editing the program, not from transferring it. I've been trying to think of ways to make sure people can't transfer the program to others but so far to no avail.

The problem with an idea such as a password built in the program I modify for each person I give the program to is that the password will just be copied along with the program. Does anybody know a solution to this problem or whether or not there even is one?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version