Re: TIB: Re: Storing text on the 86


[Prev][Next][Index][Thread]

Re: TIB: Re: Storing text on the 86




I'm almost certain the 85/86 does not have the inString command, as to the
speed of the algorithm it is fairly fast the farther in the alphabet the
letter is (i.e. x,y,z) the longer it takes.

-----Original Message-----
From: Jody <jody1@alaska.net>
To: ti-basic@lists.ticalc.org <ti-basic@lists.ticalc.org>
Date: Thursday, February 26, 1998 4:53 PM
Subject: Re: TIB: Re: Storing text on the 86


>That's a snazzy little algorithm you have there. But, how long does it
>take? If I'm reading this write (and I very well might not be) does it
>have to check every letter in the text string with ever letter in the
>alphabet until it finds a match? Here's a slightly quicker way, if
>you're interesed. (I'm assuming the 86 has an inString command?? If
>don't, then this aint gunna work. For anybody that doesn't know,
>inString returns a number that is the starting position of a
>sub-string. ie. Str0 is JODY_SNIDER. Then inString(Str0,"ODY") would
>return the number 2)
>
>:"ABCDEFGHIJKLMNOPQRSTUVWXYZ_->Str2
>:Input Str1
>:{0->L1
>:For(K,1,length(Str1
>:inString(Str2,sub(Str1,K,1->L1(dim(L1)+(L1(1)<>0
>:End
>
>Jody Snider
>jody1@alaska.net
>

C. Smith


Follow-Ups: