add subroutine numberofrecords

This commit is contained in:
Jim 2015-06-21 20:30:50 -07:00
parent 1d6cf80655
commit 061c20a0dc

View File

@ -154,8 +154,7 @@ rec=rec+1
return rec
end sub
export sub lof(filehandle)
// returns the number of blocks in the file.
export sub lof(filehandle) // alias for numberofrecords()
local x
filename$=f$(filehandle,0,0)
x=open(filename$)
@ -168,6 +167,14 @@ ret=int(ret)
return ret
end sub
export sub numberofrecords(filehandle) // alias for lof()
fh=filehandle
rtn=lof(fh)
return rtn
end sub
sub blank$(num)
local s$