Re: VFP9SP1 How to determine # of rows using LLFF operations

Author: MB Software Solutions, LLC

Posted: 2011-08-09 at 16:46:39

On 8/9/2011 4:32 PM, Tracy Pearson wrote:

> Mike,

>

> You know the record length of the file in question?

>

> liHandle = FOPEN(this.InputFile)

> if liHandle> 0

> lnFileSize = fseek(liHandle, 0, 2)&& get the file size

> =fseek(liHandle, 0, 0)&& put the pointer back at the begining

> lnRows = lnFileSize / lnLength

> DO WHILE NOT FEOF(liHandle)

> && ...

> ENDDO

> ENDIF

I had tried that with FSIZE but no luck. I'll try your way now. (I

read the FSEEK to just move the pointer...I didn't realize it would

return the length. It's been that kind of day I guess, as I know I read

the VFP Help screens.)

--

Mike Babcock, MCP

MB Software Solutions, LLC

President, Chief Software Architect

http://mbsoftwaresolutions.com

http://fabmate.com

http://twitter.com/mbabcock16

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/4E419CAF.9080809@mbsoftwaresolutions.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2011 MB Software Solutions, LLC