As an absolute beginner I'm not able to calculate the number of days
between today and a given date in a database (dBase III+ table).
After weeks of experimenting I'm able to calculate the number of
days between two dates with TRUNC ( date1 - date2 ), but when I
replace one of those variables with the datefield from the table,
things go wrong.
I've tried:
TRUNC( table1.FieldByName( 'geb' ) - date2 );
TRUNC( date1 - date2 );
I've declare date2 as...
date2 := table1.FieldByName( 'geb' ).AsString;
date2 := table1.FieldByName( 'geb' ).AsDate;
date2 := table1.FieldByName( 'geb' ).AsReal;
In my former language I just simply used the very simple frase:
Days := date1 - date2
And that's all... For a language that's supposed to be RAD, there
must be an equivalent....
Delphi is supposed to be RAD. But for me with al my
cursing ans swearing that abbreviation now means 'Raising All
Demons' to my poor family....
Plesase save their poor souls and help me to overcome this problem.
Please give me a working example, cause I've seen every corner of
the helpfiles by now...
I'm using Delphi 1.0
Thanx by Tom (son), Anita (wife) and Kikomas (dog)...
--- Blue Wave v2.12
---------------
* Origin: SYNCNET BBS - +31-35-6237178/6239318 [ISDN] (2:283/1)
|