Board index » delphi » Passing NULL value as actual Parameter !!!
Bernard Stibbe
![]() Delphi Developer |
Sun, 29 Feb 2004 18:42:22 GMT
Passing NULL value as actual Parameter !!!
Hello,
One simple question: We try to pass NULL values via parameters ----------- function TfrmMain.assignParams: Boolean; Quote>> if anEdit.Text = '' then Quote>> qrySQL.Parameters.Items[j].Direction := pdInput; qrySQL.Parameters.Items[j].Value := anEdit.text; // Assign value dec(ParamCount); // More params ? if ParamCount = 0 then break; end; end; except on e: exception do begin ShowMsg('Assignment error in Parameter ' + qrySQL.Parameters.Items[j].Name, ERROR); ShowMsg(' Value=' + anEdit.Text + ' , DataType=' + FieldTypeNames[qrySQL.Parameters.Items[j].DataType], Error); result := False; if result then We set the attribute correct !! The question are The database we use is MS-SQL V7 ? Thanks for any advise Regards, Bernard Stinne |