Hi,
Is there a Delphi equivalent for the VB Like operator. I want to be able to check to see if strings are in a particular format.
eg.
if StringVariable Like '[A-Z][0-9][ ][0-9][A-Z][A-Z]' then
//Do whatever
translates to...
if StringVariable is of the format Capital Letter, Number, Space, Number, Capital Letter, Capital Letter.
I realise that I can write my own, if one is not available.
Thanks.
There are two ways to write error-free programs; only the third one works.
Is there a Delphi equivalent for the VB Like operator. I want to be able to check to see if strings are in a particular format.
eg.
if StringVariable Like '[A-Z][0-9][ ][0-9][A-Z][A-Z]' then
//Do whatever
translates to...
if StringVariable is of the format Capital Letter, Number, Space, Number, Capital Letter, Capital Letter.
I realise that I can write my own, if one is not available.
Thanks.
There are two ways to write error-free programs; only the third one works.