Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

To Brian

Thanks, no it works. but I have an additional problem, I have two strings in two different text field to compare. How can I do that?

thanxs
0 Kudos
Message 1 of 2
(3,050 Views)
Are you using Visual C++? If your fields are string controls then you can just do the following.

int value;

value = m_StringFieldOne.Compare(m_StringFieldTwo);

if(value == 0) { AfxMessageBox("The strings in both fields are the same."); }

Grant
Grant M. Johnson
Project Engineer
LECO Corporation
0 Kudos
Message 2 of 2
(3,050 Views)