im trying to use GetDlgItemText API to get the text in a
edit box and then use the .if statement or whatever can be
used to check if its equal to a address in the .data part of
the code.

When I invoke GetDlgItemText I know it successfully retrieves the value of the edit box but I do not know how to properly check if the value is equal to another value in the .data section.

basically i need to do something like this,
If EditBox1.Text = "some value" Then
Do Something

Im sure its pretty simple so please post a example snippet
of code on here.

Posted on 2002-02-10 15:17:53 by poison
You need to do a string comparison with the data in the edit control and the reference text you have to see if they are the same. It is a simple enough piece of code to write and there is also an API that will do the comparison for you, "lstrcmp".

There is a case insensitive version as well.

Posted on 2002-02-10 15:24:42 by hutch--