add subroutine numberofrecords
This commit is contained in:
parent
1d6cf80655
commit
061c20a0dc
@ -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$
|
||||
|
Loading…
Reference in New Issue
Block a user