VBSciptEngine - DBNULL is returned as Nothing #627
Replies: 2 comments 1 reply
-
Hi @DanielGerlach2, ClearScript converts .NET's Good luck! |
Beta Was this translation helpful? Give feedback.
-
Thank you very much for the quick answer. I still think it's an error because it should actually return DBNULL, but it arrives as Nothing. https://www.file-upload.net/download-15445692/tstClearscript_627.zip.html |
Beta Was this translation helpful? Give feedback.
-
I have a function that returns the value of a field for an record which represents a data record from a table in the MSSQL server.
e.g.
Class Record
...
Function Value(Field as String) as Object
...
End Class
When using the MSScriptcontrol, DBNULL is returned for empty fields.
Sub Main
If ISDBNULL(Record.Value("Field1")) Then
...
End If
End Sub
Now when you run the same script code via VBSciptEngine, Nothing is returned.
Is there a setting or switch to get the expected return?
Beta Was this translation helpful? Give feedback.
All reactions