Quote: "but i still didnt got that part of StrToIntDef."
If the StrToInt function can't convert the string to an integer it'll raise an exception (an error message will appear). When you use StrToIntDef instead, Delphi will use the specified default value. Example:
var s1, s2: String;
var i: Integer;
begin
s1 := 'Hello';
s2 := '23';
i := StrToInt(s1); // This will cause an error message
i := StrToIntDef(s1, -1); // i is -1 now
i := StrToIntDef(s2, -1); // i is 23 now
end;
Quote: "delphi isn't that like dbpro?"
No Delphi is a variant of Object Pascal. It's probably easier to understand for Basic users than C or C++ (and I'd say even C#) cause modern Basic languages adopted a lot of elements and keywords from Pascal.
Delphi is RAD tool similar to VB and the compiler produces extremely optimised machine code. So the executables are stupendous fast.