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 …

Username in LastErrorText

Question: I discovered that the program is trying to use the Computer System Username to instead of the username given in the program code to connect to the server. Answer: The Chilkat component is not trying to use the Computer System username. The LastErrorText will (almost) always include the process’s logged-on …

LastErrorText

The first step in debugging a Chilkat method that returns a failed status is to examine the contents of the LastErrorText property. The LastErrorText property will contain information about the last method call on the object. For example: success = mailman.SendEmail(email); textBox1.Text = mailman.LastErrorText; The LastErrorText property is standard on …