Category : Pascal Source Code
Archive   : VCARD.ZIP
Filename : VC.PAS
{$M 2048,0,4096}
Program valicard;
{ Test routine for the Mod 10 Check Digit CC validator... }
uses dos,crt,Vericard;
var
card : string[22];
k : char;
Procedure Squawk(Noise : byte);
Begin
Case Noise of
1 : Begin
Sound(400);
Delay(200);
Sound(200);
Delay(200);
Nosound;
End;
2 : Begin
Sound(392);
delay(55);
nosound;
delay(30);
Sound(523);
delay(55);
nosound;
delay(30);
Sound(659);
delay(55);
nosound;
delay(30);
Sound(784);
delay(277);
nosound;
delay(30);
Sound(659);
delay(55);
nosound;
delay(30);
Sound(784);
delay(1200);
nosound;
end;
end; { case }
end;
Begin
k:=#0;
clrscr;
fillchar(Card,22,#0);
Writeln('VC: Integer Modulo-10 Visa/Mastercard/Amex Check-Digit');
Writeln(' verification routine. (c) 1990 Daniel J. Karnes');
Writeln;
Write(' Please enter a Credit Card number: ');
Readln(card);
writeln;
writeln;
if length(Card)>12 then k:=Vc(card);
if k IN ['3','4','5'] then Squawk(2) else Squawk(1);
case k of
#0 : Writeln(' Could NOT verify this number with any card type.');
'3' : Writeln(' Card was verified as a valid Amex Card Number.');
'4' : Writeln(' Card was verified as a valid VISA Card Number.');
'5' : Writeln(' Card was verified as a valid Mastercard Number.');
end;
end.
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/