Click here to Skip to main content
15,898,740 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: An existing connection was forcibly closed by the remote host? Pin
Dinesh Vitharana4-May-09 23:06
Dinesh Vitharana4-May-09 23:06 
AnswerRe: An existing connection was forcibly closed by the remote host? Pin
daveice19-Oct-09 2:28
daveice19-Oct-09 2:28 
QuestionVisual Basic 2008 Express: Sendkeys Pin
helen004-May-09 16:46
helen004-May-09 16:46 
AnswerRe: Visual Basic 2008 Express: Sendkeys Pin
Dave Kreskowiak4-May-09 17:21
mveDave Kreskowiak4-May-09 17:21 
GeneralRe: Visual Basic 2008 Express: Sendkeys Pin
helen004-May-09 18:08
helen004-May-09 18:08 
GeneralRe: Visual Basic 2008 Express: Sendkeys Pin
Christian Graus4-May-09 19:51
protectorChristian Graus4-May-09 19:51 
GeneralRe: Visual Basic 2008 Express: Sendkeys Pin
Dave Kreskowiak5-May-09 3:24
mveDave Kreskowiak5-May-09 3:24 
QuestionConstructor problems - Receiving T, need to indirect to a Constructor that accepts List(Of T) Pin
Alaric_4-May-09 10:30
professionalAlaric_4-May-09 10:30 
Public Sub New(ByVal type As LocationType, ByVal element As InspectionEntity)
    Me.New(type, New List(Of InspectionEntity){element})
End Sub
Public Sub New(ByVal type As LocationType, ByVal entities As List(Of InspectionEntity))
    Me.New(type, entities, New InspectionEntity([LIB].Enumerations.TableIDDefault.NullKey, "", ""))
End Sub


Ok...so here's the problem - One of my constructors accepts a singular "InspectionEntity" and I need to shove it into a List(Of InspectionEntity) so that it can be indirected to the next constructor in my chain (Only the terminal constructor sets properties on the object)

However, I am getting a squiggle beneath the '{' in {element}
Comma, ')', or a valid expression continuation expected.


Does anyone know the VB syntax to initialize the contents of a List(Of T) in-line?

"I need build Skynet. Plz send code"

AnswerRe: Constructor problems - Receiving T, need to indirect to a Constructor that accepts List(Of T) Pin
MidwestLimey4-May-09 10:39
professionalMidwestLimey4-May-09 10:39 
GeneralRe: Constructor problems - Receiving T, need to indirect to a Constructor that accepts List(Of T) Pin
Alaric_4-May-09 11:30
professionalAlaric_4-May-09 11:30 
AnswerRe: Constructor problems - Receiving T, need to indirect to a Constructor that accepts List(Of T) [modified] Pin
Alaric_4-May-09 10:52
professionalAlaric_4-May-09 10:52 
GeneralRe: Constructor problems - Receiving T, need to indirect to a Constructor that accepts List(Of T) Pin
Alaric_4-May-09 10:57
professionalAlaric_4-May-09 10:57 
Questionif statement.... Pin
Jamal Abdul Nasir4-May-09 9:55
Jamal Abdul Nasir4-May-09 9:55 
AnswerRe: if statement.... Pin
MidwestLimey4-May-09 10:05
professionalMidwestLimey4-May-09 10:05 
AnswerRe: if statement.... Pin
Dalek Dave4-May-09 10:25
professionalDalek Dave4-May-09 10:25 
GeneralRe: if statement.... Pin
Andy Missico4-May-09 14:57
Andy Missico4-May-09 14:57 
AnswerRe: if statement.... Pin
Tiyani Miyambo4-May-09 22:42
Tiyani Miyambo4-May-09 22:42 
GeneralRe: if statement.... Pin
Christian Graus4-May-09 22:46
protectorChristian Graus4-May-09 22:46 
GeneralRe: if statement.... Pin
Dave Kreskowiak5-May-09 3:20
mveDave Kreskowiak5-May-09 3:20 
Questionsourcecode download Pin
Vb200914-May-09 5:05
Vb200914-May-09 5:05 
AnswerRe: sourcecode download Pin
Tom Deketelaere4-May-09 5:16
professionalTom Deketelaere4-May-09 5:16 
AnswerRe: sourcecode download Pin
Dave Kreskowiak4-May-09 5:16
mveDave Kreskowiak4-May-09 5:16 
AnswerRe: sourcecode download Pin
Christian Graus4-May-09 13:36
protectorChristian Graus4-May-09 13:36 
GeneralRe: sourcecode download Pin
Rajesh Anuhya4-May-09 18:39
professionalRajesh Anuhya4-May-09 18:39 
QuestionHow can I take one record from one form and the values to open another form? Pin
waner michaud4-May-09 3:27
waner michaud4-May-09 3:27 

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.