Keith Wright
2007-10-10 02:40:00 UTC
I am trying to migrate and application from Delphi 6 to Delphi 2007 but it
is asking for a Psock in my uses clause. The source of my error seems to be
a String manipulation where I pull a value from a table, ignore the first
character 'H', then manipulate the remaining characters (integer) and
finally add the 'H' back onto the front of the string.
The source looks like this:
MaxVal := qryMaxRef.FieldByName('Max_Ref').Value;
//confirm that it is a Hydro Reference Number
if (NthPos(MaxVal,'H',1)) = 1 then
begin
MaxVal := Copy(MaxVal,2,10);
MaxVal := InttoStr(StrtoInt(MaxVal)+1);
MaxVal := 'H'+MaxVal;
Since the FastNet components were not included in the Delphi 2007, how can I
acheive the same string manipulation? The key is the NthPos line, that seems
to be where the Psock is being referenced.
Any help is much appreciated.
Keith Wright
Developer
Canada
is asking for a Psock in my uses clause. The source of my error seems to be
a String manipulation where I pull a value from a table, ignore the first
character 'H', then manipulate the remaining characters (integer) and
finally add the 'H' back onto the front of the string.
The source looks like this:
MaxVal := qryMaxRef.FieldByName('Max_Ref').Value;
//confirm that it is a Hydro Reference Number
if (NthPos(MaxVal,'H',1)) = 1 then
begin
MaxVal := Copy(MaxVal,2,10);
MaxVal := InttoStr(StrtoInt(MaxVal)+1);
MaxVal := 'H'+MaxVal;
Since the FastNet components were not included in the Delphi 2007, how can I
acheive the same string manipulation? The key is the NthPos line, that seems
to be where the Psock is being referenced.
Any help is much appreciated.
Keith Wright
Developer
Canada