Working with MS Access’s date/time type is a total headache. Which goes first the month or the day, or it depends on the values of the month and the day, or maybe on the Regional settings? There’s a medicine for this illness and it’s called DateSerial. Fortunately it works for INSERT as well as SELECT [...]
AquilaX’s development blog
You are currently viewing the category archives of Pascal
Category Archives: Pascal
Greatest Common Divisor in Pascal
A short iterational algorithm for calculating the greatest common divisor using the Euclidean algorithm.
function gcd(a, b:Longword):Longword;
var
t:Longword;
begin
while b <> 0 do
begin
t := b;
b := a mod b;
a := t;
end;
gcd := a;
end;
This function can be [...]
Datecs FP-550T
If you’re planning to develop for FP-550T Fiscal printer through the COM Server, don’t download it from the website. Get it from Datecs’ FTP Server: ftp.datecs.bg. The version on the website is obsolete and doesn’t work correctly.
This may save you a support call.