Omnimaga

Calculator Community => TI Calculators => TI-BASIC => Topic started by: josephmarin on July 12, 2007, 08:34:00 pm

Title: String/list compression in basic
Post by: josephmarin on July 12, 2007, 08:34:00 pm
I'll be needing some compression for FFROS, as you know dialog is a large chunk of bytes. So string compression would be usefu, and im worthless with compression. Could someone show me how it would be done? code would be appreciated. Thanks!
Title: String/list compression in basic
Post by: trevmeister66 on July 13, 2007, 05:10:00 am
Here is how you do string - list:
seq(Instring("ABCD...",sub(str1,A,1)),A,1,length(str1)-> L1

EDIT:
Here is a way to convert the list to string:
ClrHome
" /->/ Str2
"ABCDEFGHIJKLMNOPQRSTUVWXYZ? ./->/Str1
For(A,1,dim(L1
Str2 + sub(Str1,L1(A),1 /->/Str2
End
Title: String/list compression in basic
Post by: Insanity on July 13, 2007, 07:22:00 am
http://www.ticalc.org/archives/files/fileinfo/394/39476.html