[dba-SQLServer]C++ Help

John Colby jcolby at colbyconsulting.com
Mon Sep 8 12:41:19 CDT 2003


It's been too long but first you have an uneven number of open curly
brackets { vs closed curly brackets.

Second, shouldn't the leading open bracket be behind the if?

John W. Colby
www.colbyconsulting.com

-----Original Message-----
From: dba-sqlserver-bounces at databaseadvisors.com
[mailto:dba-sqlserver-bounces at databaseadvisors.com]On Behalf Of
Nicholson, Karen
Sent: Monday, September 08, 2003 2:39 PM
To: Dba-Sqlserver (E-mail)
Subject: [dba-SQLServer]C++ Help


Do we have a group for C++ Help?  I am getting put through the learning
curve ringer, but it is great.  Went from SQL to VB6 now to C++.  Only
problems are those hiccups you get between languages, little things that add
gray hair.

This is my C++ code for an OK, CANCEL button:

{
if (Application->MessageBox("Warning - You are About to Update the Rebate
Pay Field","Warning",MB_OKCANCEL) != IDOK)
{StoredProc1->Prepare();
StoredProc1->ExecProc();
}

else {
MessageBox,(NULL, "Records Not Updated", NULL, NULL);
}
}


I don't think it is working - I don't get the message box I expect if the
user selects cancel.  Any thoughts?
_______________________________________________
dba-SQLServer mailing list
dba-SQLServer at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/dba-sqlserver
http://www.databaseadvisors.com






More information about the dba-SQLServer mailing list