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

Down

Handling dates from IB to Delphi and back Find similar branches


Сергей Н.   (2001-12-04 06:23) [0]

You need to make a UDF function for working with dates.
How to accept and work with Delphi with IB date?
How to return the processed date from Delphi to the table field IB?



Vadim   (2001-12-04 10:44) [1]

library Mylib; uses SysUtils; type ISC_QUAD = Record isc_quad_high: Integer; isc_quad_low: Cardinal; End; PISC_QUAD = ^ ISC_QUAD; threadvar tempquad: ISC_QUAD; Function MonthAdd (Var NumberMonth: Integer; IBDate: PISC_QUAD): PISC_QUAD; cdecl; export; Begin tempquad.isc_quad_high: = Round (IncMonth (IBDate ^ .isc_quad_high, NumberMonth)); Result: = @tempquad; End; Function OnlyDate (IBDate: PISC_QUAD): PISC_QUAD; cdecl; export; Begin tempquad.isc_quad_high: = Round (IBDate ^ .isc_quad_high); Result: = @tempquad; End; Exports MonthAdd Name "MonthAdd"; Exports OnlyDate Name "OnlyDate"; begin end.



DECLARE EXTERNAL FUNCTION MONTH_ADD INTEGER, TIMESTAMP RETURNS TIMESTAMP ENTRY_POINT "MonthAdd" MODULE_NAME "Mylib.dll";



Pages: 1 whole branch

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

Top





Memory: 0.54 MB
Time: 0.02 c
3-21945
asafr
2001-12-04 18:11
2002.01.08
FastReport. frBand.Visible


6-22296
Kolyan
2001-10-11 12:49
2002.01.08
TSocket!


1-22047
handra
2001-12-17 13:12
2002.01.08
Help creation


14-22376
Brand-new
2001-11-07 01:11
2002.01.08
help someone can


1-22191
stalker_boss
2001-12-16 02:50
2002.01.08
Sound





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 Spanish 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