TH> Does FIELD have to be on one logical line?
I believe it does. At least thats the way I've always done it...
ES> cnt=13
ES> ep=sp+val(numblk$)-1 'end pointer
ES> for i=sp+1 to ep
ES> get #1,i
TH> Does this automatically go to msgtxt$?
Yes it does. Whenever you use GET with random files it will always
read in the amount specified by the LEN= option on the open statement,
which in this case is 128, and whose field statement is msgtxt$. The
message will consist of 1 or more 128 byte blocks, hence the for loop
from sp (starting pointer) to ep (ending pointer).
I imagine there is a way to port this over to TYPE statements, I just
haven't bothered to learn how to go from Field to Type yet as it
hasn't been important for anything I'm doing. eric
--- QM v1.00
---------------
* Origin: Creekside Manor (805) 484-8016 CdCom Support BBS (1:206/2512.0)
|