Expand Minimize
0 out of 1 rated this helpful - Rate this topic

Structure '<structurename>' must contain at least one instance member variable or at least one instance event declaration not marked 'Custom'

A structure definition does not include any nonshared variables or nonshared noncustom events.

Every structure must have either a variable or an event that applies to each specific instance (nonshared) instead of to all instances collectively (Shared (Visual Basic)). Nonshared constants, properties, and procedures do not satisfy this requirement. In addition, if there are no nonshared variables and only one nonshared event, that event cannot be a Custom event.

Error ID: BC30941

To correct this error

  • Define at least one variable or event that is not Shared. If you define only one event, it must be noncustom as well as nonshared.

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.