
Originally Posted by
skimask
Instead of this:
Code:
'* * * * * * LOAD ARRAY WITH STRING VALUE * * * * * * * * * * *
CHAR[0]= "A"
CHAR[1]= "B"
CHAR[2]= "C"
CHAR[3]= "D"
CHAR[4]= "E"
CHAR[5]= "F"
CHAR[6]= "G"
CHAR[7]= "H"
CHAR[8]= "I"
CHAR[9]= "J"
CHAR[10]="K"
CHAR[11]="L"
CHAR[12]="M"
CHAR[13]="N"
CHAR[14]="O"
CHAR[15]="P"
CHAR[16]="Q"
CHAR[17]="R"
CHAR[18]="S"
CHAR[19]="T"
CHAR[20]="U"
CHAR[21]="V"
CHAR[22]="W"
CHAR[23]="X"
CHAR[24]="Y"
CHAR[25]="Z"
Try this:
Code:
For temp = "A" to "Z" : CHAR[ temp ] = temp : Next temp
Easier to type, uses less memory, and so on...
Another idea for you...
Put the complete message into an array of bytes, the whole message, columns and all, not just the ASCII representation of each character (i.e. each character will use up 8 bytes in the array).
Then, when displaying the message, (is the matrix actually 8x8? or are there really more 8x8 chunks involved?), shift the array by one column, pause, redisplay it...
Ski,
About the array loop and indexing it;
When Temp = "A", how will "CHAR[ temp ] = temp" work?
Where will "A" go? CHAR[65] ?
What about CHAR[Temp-65] = Temp ?
---------------------
Note: I just realized that my edit updated after Ski posted!
Last edited by sayzer; - 15th August 2008 at 16:26.
"If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte
Bookmarks