insertion de données nulles
Bonjour voici mon code
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
bool bret = false;
try
{
myDBManager = new Tools.DBManager(Variables.Stock, 1);
if (myDBManager.open())
{
if (myDBManager.executeSQL("SELECT * FROM MachineCorrespondance WHERE ID_ENR=" + idMachine))
{
nbDiamCorps = 0;
while (myDBManager.read())
{
myDBManager.getDouble("DIAMCORPS", ref TABdiamCorps[nbDiamCorps]);
if (nbDiamCorps == 0)
myDBManager.getDouble("DIAMFIL", ref diamFil);
nbDiamCorps++;
}
}
}
}
catch (Exception ex)
{
bret = false;
Variables.myLog.WriteError("Machine Erreur WriteData : " + ex.ToString());
}
finally { myDBManager.close(); }
return bret; |
Je cherche à insérere les données simplement rien n'est rentré et je ne comprend pas pourquoi qulqu'un pourrait m'aider s'il vous plait ?
Merci