Hi guys I'm new to visual C++
so I'm looking for some pointers
can someone tell what is wrong with this statement
{
String^ checkName = firstname_txt->Text;
if (checkName = "")
{
MessageBox::Show("Please Enter\nYour Name.");
label6->Text = L"*";
}
else
MessageBox::Show("Saved.");
}
even if I enter some text in the textbox it will only fire the first condition.
Many thanks
I'm studying hard every day, so why is the learning curve appear to be heading downwards?
so I'm looking for some pointers
can someone tell what is wrong with this statement
{
String^ checkName = firstname_txt->Text;
if (checkName = "")
{
MessageBox::Show("Please Enter\nYour Name.");
label6->Text = L"*";
}
else
MessageBox::Show("Saved.");
}
even if I enter some text in the textbox it will only fire the first condition.
Many thanks
I'm studying hard every day, so why is the learning curve appear to be heading downwards?