13.07.2015 Views

Turbo Basic

Turbo Basic

Turbo Basic

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

LOC functionFunctionSyntaxRemarksExampleLOC returns the current file position.y = lOC(filenum)filenum is the value under which the file was OPENed. Thebehavior of LOC depends on the mode in which the file wasOPENed.If filenum is a random file, LOC returns the number of the lastrecord written or read.If filenum is a sequential file, LOC returns the number of 128-byte blocks written or read since .opening the file. By convention,LOC returns one block for files that have been opened but have notyet been written or read.Iffilenum is a binary file, LOC returns the SEEK file position.For a communications file, LOC returns the number of charactersin the input buffer.OPEN "lOC.DTA" FOR BINARY AS #1PUT$ #1, "<strong>Turbo</strong><strong>Basic</strong>"PRINT lOC(1)CLOSEEND252<strong>Turbo</strong> <strong>Basic</strong> Owner's Handbook

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!