Chilkat Success/Failure Return Status Values in VB.NET vs. VB6

When programming in VB.NET or VB6, be careful that you are looking at the correct online examples.

VB6 examples are located here.

whereas

VB.NET examples are located here.

In VB6, it is the Chilkat ActiveX that is used, and return values (in general) are 1 for success and 0 for failure. However, in VB.NET, return values are True for success and False for failure. The value True is not equal to 1. Therefore, if programming in VB.NET, do not check for 1/0 return values, make sure to check for True/False.

Tags :