VB6 Runtime error 91 – Object variable or With block variable not set
A Chilkat method that returns an object must be checked for NULL ( also known as Nothing, nil, nada, etc. in other programming languages). A NULL return value indicates failure. In this case, check the contents of the object instance’s LastErrorText property.
In Visual Basic 6.0, this is the error message you’d get when trying to dereference a NULL object reference:
Here is an example of checking for a NULL return value in VB6:
Set xml = xml0.HttpGet("http://www.chilkatsoft.com/testData/currency.xml") If (xml Is Nothing) Then Text1.Text = xml0.LastErrorText Exit Sub End If
admin
0
Tags :