Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
A structure member variable was initialized as part of its declaration.
Error ID: BC31049
To correct this error
Use a constant instead of a variable.
Add a parameterized constructor to the structure. For example:
Structure TestStruct Public t As Integer Sub New(ByVal Tval As Integer) t = Tval End Sub End Structure
See also
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.