Forum: Datenbanken
Delphi
by ToFaceTeKilla,
8. Dez 2009
Fine. So what was the problem? I'm curious :-)
Forum: Datenbanken
Delphi
by ToFaceTeKilla,
7. Dez 2009
Ok then i would guess its a database issue. What are the values of the parameters (:HWM_ID,...)? Are there database entries which match these? Because no match with "WHERE" - no update ;-)
Forum: Datenbanken
Delphi
by ToFaceTeKilla,
7. Dez 2009
Do you still get these empty strings? Looks like the Values (,,) are empty or Format can`t convert them?!
Maybe the parameter '%.3f' breaks the function (doen't know, never worked with Format)?
Forum: Datenbanken
Delphi
by ToFaceTeKilla,
7. Dez 2009
Does the code compile? Do you get any error messages or arent there just any updated records?
If it runs and there are just no records updated then set breakpoints and step through your code. Maybe one of the functions (CPUIDSDK_GetNumberOfSensors or CPUIDSDK_GetSensorInfos) returns a wrong value?
Forum: Datenbanken
Delphi
by ToFaceTeKilla,
7. Dez 2009
What are :Sensor_Class, :HWM_ID, :Sensor_ID? Are these Delphi-Variables? Then you must quote and add them (if they are strings! otherwise you must convert them to string!)
'...WHERE (HWM_ID = '+:HWM_ID+') and (Sensor_Class = '+:Sensor_Class+') and (Sensor_ID ='+ :Sensor_ID+')';
And put brackets () around every logical statement!
edit: rubbish
Forum: Datenbanken
Delphi
by ToFaceTeKilla,
7. Dez 2009
Maybe you should cut out some + and some quotationmarks...
Forum: Datenbanken
Delphi
by ToFaceTeKilla,
7. Dez 2009
Dont know ABSSql but shouldn´t he use mikhals solution + ABSQuery1.ExecSQL;
in EVERY for-loop (like he added in his 1st post) and not at the end?