If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Enjoy an ad free experience by logging in. Not a member yet? Register.

Delphi Issues

Hi
I am making a log on system in delphi as part of a larger database project and ive run into a bit of an issue.
I have made a log on system which recalls information from a text file into a memo box and compares information from 2 edit boxes on forename and surname with the contense of the memo box.
Here is where my problem lies, I have absolutely no idea how to compare the 2 fields. So far I have recalled all the data from the text file to the memo but can't sort it or search it. Later on I will need to use a similar piece of code for my database so any information is much appreciated. Could someone please post some sample code or at least give me an idea of what to do.

Thankyou

Cheers for the link but I need someone who knows delphi inside out to full explain what to do. I've been researching it for weeks and I still cant find anything thats any help, and no it doesnt have any script like that (or not that ive seen anyway) Thanks all!

The example they give seems pretty straightforward, pass the two strings you're interested in to this procedure and 'result' will be 0 if they match and something else if they don't (in this case Tform1 is just an example class that uses CompareStrings as a method):