Contents of this page:
VB has the concept of a user Type. A user can define a Type which can then be used to define variables which have one or more properties, each with its own type. The closest Python equivalent is a bare class. VB User Types are converted to bare classes with the appropriate properties. When a user Type is used, an istance of the class is created in the Python code.
Class properties are defined in an __init__ method to avoid having mutable class properties.
VB | Python |
---|---|
|
|
There are no options specific to the Type statement.