
les traigo un consulta como lo indica el titulo

tengo una variable de tipo Currency a la que segun el valor de otra variable (totvariedad=0) le quiero asignar NULL para
q cuando me actualize en la Tabla de la BD no me guarde ningun valor.
delphi
if n=1 then totvariedad := multi else if n=0 then totvariedad := null else totvariedad := Power(multi, 1/n) ; AQimpu3.SQL.Text := 'update '+tablavariedad+' '+ 'set actual ='+ currtostr(totvariedad) +' '+ 'where idvariedad= '+ inttostr(variedad)+' '+ 'and idnegocio= '+inttostr(negocio)+' '; AQimpu3.ExecSQL;
totvariedad y multi con Currency y cuando ejecuto el procedimiento
me sale el error : "could not convert variant of type null into type Currency"
hay alguna manera de asignarle null a una variable en delphi?
Gracias por todo.
Saludos!
