Currently I'm passing the text from my Tedit's to a tempory string variable then calling a validation procedure passing the string as the text to validate, like so:
Code:
TempString := edit1.text;
ValidateProc(Tempstring);
and my validation procedure looks like this:
Code:
procedure ValidateProc(var TextToCheck: string);
begin
if TextToCheck = good then result=good;
end;
What I'd really like to do is pass the edit1.text to the validation procedure directly, without using a tempory holding string.
Is this possible?
Steve (Delphi 2007 & XP)