vb.net - Structure cannot be indexed because it has no default property -
I get an error message "The structure can not be indexed because it has no default property". Will anyone show me what I am doing?
Public structure length 8 fixed string & lt; VBFixedString (8) & gt; Public myFixedString As String '8 Length is STRING End Structure Public Structure Example Structure 2 & lt; VBFixedArray (7) & gt; People myArray Length8FixedString termination structure handles as Folk Class Form1 Personal Sub Button1_Click (as in this object, in the form of E EventArgs) Button1.Click Dim V New ExampleStructure2 V.myArray (1) = "Tim" 'as Error: Structure, because it can not be indexed. A default property ending sub end class
You have declared that instead of myArray fixed lambethryng as fixed lambethry C array:
public structure example Structure 2 & lt; VBFixedArray (7) & gt; Public myArray Length 8FixedString () End Structure Not sure that this is what you want because it reveals more problems if you are trying to get it , It would be obvious that this is not the answer.
Comments
Post a Comment