Home
Top.Mail.Ru Yandeks.Metrika
Forum: "Main";
Current archive: 2002.01.08;
Download: [xml.tar.bz2];

Down

How to compare dates and the difference between them to get an integer Find similar branches


DerZky   (2001-12-19 18:14) [0]

How to compare two dates and the difference between them is recorded in a variable of type Integer. For example, so that 21.12.2001 minus 19.12.2001 is equal to 2.



Mick   (2001-12-19 18:18) [1]

Trunc (EncodeDate (2001,12,21) - Trunc (EncodeDate (2001,12,19) is exactly equal to 2



DerZky   (2001-12-19 19:46) [2]

I wrote the following
procedure TForm1.Button1Click (Sender: TObject); var Cifra: Integer; begin Cifra: = Trunc (EncodeDate (2001,12,21)) - Trunc (EncodeDate (2001,12,19)); end;
Delphi writes - [Hint] Unit1.pas (30): Value assigned to "Cifra" never used
What is it?



LLL   (2001-12-19 21:16) [3]

This is just a warning that Cifra is not used anywhere else.
Worry - have you forgotten about Cifra?



a100   (2001-12-19 21:16) [4]

and writes correctly! And where is the obtained result generally used ?! Variable is local



Pages: 1 whole branch

Forum: "Main";
Current archive: 2002.01.08;
Download: [xml.tar.bz2];

Top









Memory: 0.56 MB
Time: 0.023 c
3-21963
szap
2001-12-05 11:53
2002.01.08
Speed


3-21919
VS
2001-12-04 14:07
2002.01.08
Reading and Correcting Data from a Visual FoxPro 6.0 DBF Database


1-22262
Kate
2001-12-17 15:25
2002.01.08
help


1-22003
Virtualik
2001-12-17 16:09
2002.01.08
TListItems


1-22070
g
2001-12-18 21:53
2002.01.08
font management with the POPUP menu





afrikaans albanian Arabic armenian azerbaijani basque belarusian bulgarian catalan Chinese (Simplified) Chinese (Traditional) croatian Czech danish Dutch English estonian filipino finnish French
galician georgian German greek haitian Creole hebrew Hindi hungarian icelandic indonesian Irish italian Japanese Korean latvian lithuanian macedonian malay maltese norwegian
persian polish portuguese Romanian russian serbian slovak Slovenian Español swahili Swedish thai turkish Ukrainian urdu vietnamese welsh yiddish bengali bosnian
cebuano Esperanto gujarati hausa hmong igbo javanese kannada khmer lao latin maori marathi mongolian nepali punjabi somali tamil telugu yoruba
zulu
English French German Italian Portuguese Russian Spanish