E
emonster
Unregistered / Unconfirmed
GUEST, unregistred user!
IB里没有SQL SEVER中的ISNULL(),我只好用D5写了一个DLL,在D5里试调用正常,但
UDF调用返回不正常值。 请指教。
D5 中如下:
function(a:variant,b:variant):varaint;
begin
if varisnull(a) then
result:=b
else
result:=a;
end;
IB 中如下:
DECLARE EXTERNAL FUNCTION NEW_UDF1
DOUBLE PRECISION
RETURNS DOUBLE PRECISION BY VALUE
ENTRY_POINT "isnull" MODULE_NAME "mynull.dll"
UDF调用返回不正常值。 请指教。
D5 中如下:
function(a:variant,b:variant):varaint;
begin
if varisnull(a) then
result:=b
else
result:=a;
end;
IB 中如下:
DECLARE EXTERNAL FUNCTION NEW_UDF1
DOUBLE PRECISION
RETURNS DOUBLE PRECISION BY VALUE
ENTRY_POINT "isnull" MODULE_NAME "mynull.dll"