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 Delphi Databases > Re: problem w/ ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 12 of 17 Topic 894 of 987
Post > Topic >>

Re: problem w/ locate function...need ur input guys...

by Jamie <jamie_ka1lpa_not_valid_after_ka1lpa_@[EMAIL PROTECTED] > Feb 26, 2006 at 09:47 AM

pr wrote:
> "shotokan99" <soft_devjava@[EMAIL PROTECTED]
> wrote in message 
> news:1140843728.083172.143400@[EMAIL PROTECTED]
> 
>>actually the the first algo for that was this:
>>
>>with db.table1 do
>>begin
>>  if locate(....) then  //checking if the record exist
>>  begin
>>    //adding values of other fields.. on the same record
>>  end
>>  else
>>    // if not existing ..insert new record here...
>>end;
>>
>>just change that to its new algo now..coz i did encounter problems.
>>actually i did set the time format and date format through regional
>>settings according to the format im using which m/d/yy and HH:mm:ss
>>
>>why is it in database desktop they only date data type. is there no
>>time data type in dbase?
>>so if im checking empty values with the use of ' ' -  shall we say
>>that's inaccurate, so what's the best way?
> 
> 
> It depends somewhat on the database. The way to perform a full check is:
> 
> if Table.FieldByName('TEST').IsNull or 
> (Table.FieldByName('TEST').AsString='') then
>   blah;
> 
> NULL is not equal to '' or 0 (zero), for that matter.
> NULL equals 'not known' value. Both '' and 0 are 'known' values.
> This is an extremely useful distinction but sometimesalso causes
problems
> and results which you may not expect but are very logical, e.g.
>  NumericValue + NULL = NULL
>  StringValue + NULL = NULL
> 
> 
> PR
> 
> 
and then you have compiler issues where it optimizes to pass
a null pointer of a string when it should be passing a
  valid pointer to a string with a zero length in it!
  (first character being a #0)..


-- 
Real Programmers Do things like this.
http://webpages.charter.net/jamie_5
 




 17 Posts in Topic:
problem w/ locate function...need ur input guys...
"shotokan99" &l  2006-02-21 18:48:58 
Re: problem w/ locate function...need ur input guys...
"pr" <pr@[EM  2006-02-22 06:43:28 
Re: problem w/ locate function...need ur input guys...
"shotokan99" &l  2006-02-21 21:25:27 
Re: problem w/ locate function...need ur input guys...
"pr" <pr@[EM  2006-02-22 17:13:37 
Re: problem w/ locate function...need ur input guys...
"Bruce Roberts"  2006-02-22 12:25:49 
Re: problem w/ locate function...need ur input guys...
"shotokan99" &l  2006-02-23 18:44:29 
Re: problem w/ locate function...need ur input guys...
"Bruce Roberts"  2006-02-24 17:30:46 
Re: problem w/ locate function...need ur input guys...
"pr" <pr@[EM  2006-02-24 05:46:59 
Re: problem w/ locate function...need ur input guys...
"shotokan99" &l  2006-02-24 21:02:08 
Re: problem w/ locate function...need ur input guys...
"Bruce Roberts"  2006-02-25 13:48:52 
Re: problem w/ locate function...need ur input guys...
"pr" <pr@[EM  2006-02-26 05:29:43 
Re: problem w/ locate function...need ur input guys...
Jamie <jamie_ka1lpa_no  2006-02-26 09:47:56 
Re: problem w/ locate function...need ur input guys...
"shotokan99" &l  2006-02-24 21:03:18 
Re: problem w/ locate function...need ur input guys...
"shotokan99" &l  2006-02-24 21:03:45 
Re: problem w/ locate function...need ur input guys...
"shotokan99" &l  2006-02-24 21:04:21 
Re: problem w/ locate function...need ur input guys...
"shotokan99" &l  2006-02-24 21:06:54 
Re: problem w/ locate function...need ur input guys...
"shotokan99" &l  2006-02-25 23:31:53 

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 Sep 7 7:31:17 CDT 2008.