Click here to Skip to main content
15,890,336 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: How to solve the INSERT table error below Pin
Briga16-Jan-06 23:36
Briga16-Jan-06 23:36 
GeneralRe: How to solve the INSERT table error below Pin
angelagke17-Jan-06 0:05
angelagke17-Jan-06 0:05 
QuestionHow to display Master and details in same DataGridView? Pin
Omar Mallat16-Jan-06 22:02
professionalOmar Mallat16-Jan-06 22:02 
Questionpicturebox with scrolling bar. Pin
cylix200016-Jan-06 21:54
cylix200016-Jan-06 21:54 
AnswerRe: picturebox with scrolling bar. Pin
Owner drawn17-Jan-06 0:54
Owner drawn17-Jan-06 0:54 
General[Solved] Pin
cylix200018-Jan-06 15:38
cylix200018-Jan-06 15:38 
QuestionArrays Declared as structure members cannot be Pin
The Chameleon16-Jan-06 18:14
The Chameleon16-Jan-06 18:14 
AnswerRe: Arrays Declared as structure members cannot be Pin
Joshua Quick16-Jan-06 21:52
Joshua Quick16-Jan-06 21:52 
The reason it fails is because you can't initialize a structure's members variables upon declaration. This is only allowed in a class. For example, the following is not allowed in a structure...

Public Structure Person
   Public Age As Integer = 21         ' Error!
   Public Name As String = "Bob"      ' Error!
   Public Age As New Date(1970, 1, 1) ' Error!
End Structure

Now, how is this related to your array you ask? It's because the following array declaration...
Dim Numbers(2) As Integer
...creates a new array object and is not all that different than declaring it like this...
Dim Numbers() As Integer = New Integer() {0, 0, 0}

So, what can you do about it? You can create an initialization function that will allocate the array for you. Or you can initialize it in a constructor, but remember that a structure can't have a constructor with no arguments.

I hope this helps!
GeneralRe: Arrays Declared as structure members cannot be Pin
The Chameleon16-Jan-06 22:00
The Chameleon16-Jan-06 22:00 
GeneralRe: Arrays Declared as structure members cannot be Pin
Joshua Quick17-Jan-06 7:39
Joshua Quick17-Jan-06 7:39 
AnswerRe: Arrays Declared as structure members cannot be Pin
Guffa16-Jan-06 21:58
Guffa16-Jan-06 21:58 
GeneralRe: Arrays Declared as structure members cannot be Pin
The Chameleon16-Jan-06 22:05
The Chameleon16-Jan-06 22:05 
QuestionText Out Of Focus Pin
The Chameleon16-Jan-06 17:56
The Chameleon16-Jan-06 17:56 
AnswerRe: Text Out Of Focus Pin
Christian Graus16-Jan-06 18:02
protectorChristian Graus16-Jan-06 18:02 
GeneralRe: Text Out Of Focus Pin
The Chameleon16-Jan-06 18:35
The Chameleon16-Jan-06 18:35 
AnswerRe: Text Out Of Focus Pin
shiroamachi16-Jan-06 18:14
shiroamachi16-Jan-06 18:14 
GeneralThanks Pin
The Chameleon16-Jan-06 18:27
The Chameleon16-Jan-06 18:27 
GeneralRe: Text Out Of Focus Pin
The Chameleon16-Jan-06 18:37
The Chameleon16-Jan-06 18:37 
GeneralRe: Text Out Of Focus Pin
shiroamachi16-Jan-06 19:10
shiroamachi16-Jan-06 19:10 
GeneralRe: Text Out Of Focus Pin
The Chameleon16-Jan-06 19:34
The Chameleon16-Jan-06 19:34 
GeneralRe: Text Out Of Focus Pin
shiroamachi16-Jan-06 20:10
shiroamachi16-Jan-06 20:10 
QuestionImport Data Into Access Database from Excel Pin
shiroamachi16-Jan-06 17:55
shiroamachi16-Jan-06 17:55 
Questionaspnet_wp.exe cpu usage Pin
elcheah16-Jan-06 17:51
elcheah16-Jan-06 17:51 
AnswerRe: aspnet_wp.exe cpu usage Pin
Dave Kreskowiak17-Jan-06 5:13
mveDave Kreskowiak17-Jan-06 5:13 
QuestionHow to solve exception error below Pin
angelagke16-Jan-06 17:15
angelagke16-Jan-06 17:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.