Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
TDate MachineDate = MachineDateTimePicker->Date;
AnsiString MachineDateStr = MachineDate.FormatString("dd'-'mm'-'yyy");
// Set up Add
AnsiString ProdSQLAddStr = "INSERT INTO ProductionHours ";
ProdSQLAddStr += "(Machine, MachineDate, MachineShift, MachineTtlHours) VALUES(";
ProdSQLAddStr += "'" + MachineStr + "', ";
ProdSQLAddStr += "'" + MachineDateStr + "', ";
ProdSQLAddStr += "'" + MachineShiftStr + "', ";
ProdSQLAddStr += "'" + ProdHoursStr + "')";
try // Process
{
TimeADOQuery->Close();
TimeADOQuery->SQL->Clear();
TimeADOQuery->SQL->Add(ProdSQLAddStr);
TimeADOQuery->Prepared = true;
TimeADOQuery->ExecSQL();
} // Process
catch ( ... ) // Error adding
{
Application->MessageBox("Error updating ProductionHours table!", "Table Error", MB_OK);
} // Error adding
[BCC32 Error] Unit1.cpp(24): E2451 Undefined symbol 'MachineStr'
[BCC32 Error] Unit1.cpp(26): E2451 Undefined symbol 'MachineShiftStr'
[BCC32 Error] Unit1.cpp(27): E2451 Undefined symbol 'ProdHoursStr'
[BCC32 Error] Unit1.cpp(39): E2034 Cannot convert 'const char *' to 'const wchar_t *'
[BCC32 Error] Unit1.cpp(39): E2342 Type mismatch in parameter 'Text' (wanted 'const wchar_t *', got 'const char *')