TH> I am decoding QWK packets. As you may know QWK packes are
> constructed of 128-byte records. Each post is made up of a header
> record and usually one or more text records. The header record is
> composed several fixed length fields for which a user TYPE works
> very well. However the text records is essentially one continuous
> string.
ES> Here is some code from a few years back I wrote for a friend to
> read messages in QWK format. It uses fields however, not types.
ES> FIELD #2,1 as msgstatus$,7 as msgnum$,8 as msgdate$,5 as msgtime$,_
ES> 25 as msgto$,25 as msgfrom$,25 as msgsubj$,12 as msgpswrd$,_
ES> 8 as msgrefnum$, 6 as numblk$,1 as msgactive$,2 as msgconf$,1 as
ES> msgtag$
Does FIELD have to be on one logical line?
ES> cnt=13
ES> ep=sp+val(numblk$)-1 'end pointer
ES> for i=sp+1 to ep
ES> get #1,i
Does this automatically go to msgtxt$?
--- Maximus/2 3.01
---------------
* Origin: Madman BBS * Chico, California * 916-893-8079 * (1:119/88)
|