Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
WCrihfield
in reply to: kwilson_design

Another little note about using those constants.

Yes values:

The 'vbYes' constant has the numerical value of 6.

The MsgBoxResult.Yes variation also has the numerical value of 6.

The DialogResult.Yes variation also has the numerical value of 6.

This is the reason why vbYes 'can' work in both situations.

 

The same goes for 'No', which has a numerical value of 7 in both Enum's.

Cancel is 2 in both Enum's, and the constant vbCancel.

OK is 1 in both Enum's, and the constant vbOK.

And so on.  Even though vbOK is a MsgBoxResult variation, instead of a DialogResult variation, it has the same numerical value as both variations of the two different Enums.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)