Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Pascal Borland > Re: Binary data...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 21 of 23 Topic 1066 of 1114
Post > Topic >>

Re: Binary databases

by Joe <joe@[EMAIL PROTECTED] > Dec 22, 2007 at 08:05 PM

winston19842005 wrote:
> 
> 
> On 12/22/07 8:48 AM, in article 13mq5vi2bqc84a7@[EMAIL PROTECTED]
"Joe"
> <joe@[EMAIL PROTECTED]
> wrote:
> 
>> Jim Leonard wrote:
>>> On Dec 18, 9:17 pm, Joe <j...@[EMAIL PROTECTED]
> wrote:
>>>>> All programmers worth their salt start counting from 0.  The more
>>>>> experienced a programmer you become, the more you'll understand why.
>>>> Ok, do you have a way to tell when I database has 0 records in. That
way
>>>> I would be able to tell the program what to do. That way I could
avoid
>>>> all these crashes
>>> You maintain a variable that has a count of how many records exist.
>>> For example, "NumRecords".
>> Ok, I guess no one is getting the idea here. Jim. I know that.
>>
>> NumRecords:= filesize(U);
>>
>> The line above returns all the records. You must remember that the
first
>> record starts at '0'. Not at 1. So my question is how to I tell if the
>> (U) has one record or no records in it.
>>
>> if (NumRecords = 0) then exit;
>>
>> the line above by passes the first record. The first record all ways
>> starts at 0.
>>
> 
> I think everybody understands you are not a programmer.
> 
> Question: What does filesize return for an empty file? If it returns 0
for
> both an empty file and a file with 1 record, then you need another
method
> for determining if a file is empty, which probably exists.
> 
> Depends on your flavor of Pascal and/or available functions.
> 
Thank You, Thats just what I'm trying to say. Any way have any ideas. I 
use Vpascal Version 2.1
 




 23 Posts in Topic:
Binary databases
Joe <joe@[EMAIL PROTEC  2007-12-14 16:55:33 
Re: Binary databases
Robert Riebisch <Rober  2007-12-15 20:20:22 
Re: Binary databases
Joe <joe@[EMAIL PROTEC  2007-12-18 12:49:02 
Re: Binary databases
Jim Leonard <MobyGamer  2007-12-18 13:05:33 
Re: Binary databases
Joe <joe@[EMAIL PROTEC  2007-12-18 22:17:41 
Re: Binary databases
"Jochen" <jo  2007-12-19 05:17:45 
Re: Binary databases
"Jason Burgon"   2007-12-19 09:58:51 
Re: Binary databases
Joe <joe@[EMAIL PROTEC  2007-12-20 18:35:12 
Re: Binary databases
"Jochen" <jo  2007-12-22 15:22:05 
Re: Binary databases
Joe <joe@[EMAIL PROTEC  2007-12-22 20:03:44 
Re: Binary databases
"Jochen" <jo  2007-12-23 06:47:49 
Re: Binary databases
Joe <joe@[EMAIL PROTEC  2007-12-23 11:55:52 
Re: Binary databases
Jim Higgins <invalid@[  2007-12-23 23:48:54 
Re: Binary databases
Joe <joe@[EMAIL PROTEC  2007-12-27 09:09:39 
Re: Binary databases
Jim Higgins <invalid@[  2007-12-27 15:38:12 
Re: Binary databases
Joe <joe@[EMAIL PROTEC  2007-12-27 19:45:20 
Re: Binary databases
"winston19842005@[EM  2007-12-19 00:57:11 
Re: Binary databases
Jim Leonard <MobyGamer  2007-12-21 11:18:29 
Re: Binary databases
Joe <joe@[EMAIL PROTEC  2007-12-22 08:48:19 
Re: Binary databases
winston19842005 <bjjly  2007-12-22 09:17:11 
Re: Binary databases
Joe <joe@[EMAIL PROTEC  2007-12-22 20:05:32 
Re: Binary databases
Jim Leonard <MobyGamer  2007-12-24 10:34:36 
Re: Binary databases
Joe <joe@[EMAIL PROTEC  2007-12-27 09:12:16 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Jul 6 3:02:53 CDT 2008.