Jim Higgins wrote:
> On Sat, 22 Dec 2007 20:03:44 -0500, Joe <joe@[EMAIL PROTECTED]
> wrote:
>
>> Jochen wrote:
>>> hi!
>>>
>>> Joe typed:
>>>
>>>> assign(person, 'path\?');
>>>> rewrite(person);
>>>>
>>>> recnum:= filesize(person); // This all ways starts at 0. No matter if
>>>> there is 1 record in it or not.
>>> there cannot be a record in it!
>>> rewrite creates a new empty file. so of course it has 0 records.
>>> please read the help about working with files: rewrite, reset, append,
>>> filemode and so on i mean.
>>>
>>>> if (recnum = 0) then goto ?; //Then I miss the first record.
>>>>
>>> Does that help?
>>> greetz
>>> Jo
>>>
>> Then you must be talking about some thing else Jo. I don't why it doing
>> it, Your right. When you rewrite a file. It's blank, Theres nothing in
>> there, How ever. Every time I do add a record to it. The new recordnum
>> IS 0. and always 0.
>>
>> And I don't have the doc's for Vpascal any way. I wish I didn't. Been
>> looking for them and I haven't fount them yet
>
>
> It strikes me the OP and several responders are not making the
> distinction between "record number" and "number of records."
Well let me see. I only been programing in pascal for about 2 weeks Jim.
And some of the samples that I fount didn't use that option "filepos".
Oh, and the manual that I have only has 119 pages in it. So that option
isn't even listed in there. How ever I'm still looking for a manual that
does.


|