Click here to Skip to main content
15,902,635 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionVBA Help, probs really simple Pin
harveyhanson9-May-08 2:21
harveyhanson9-May-08 2:21 
AnswerRe: VBA Help, probs really simple Pin
parth.p9-May-08 2:56
parth.p9-May-08 2:56 
QuestionSelect subset of records from .xml Pin
cstrader2329-May-08 1:40
cstrader2329-May-08 1:40 
AnswerRe: Select subset of records from .xml Pin
Dave Kreskowiak9-May-08 3:27
mveDave Kreskowiak9-May-08 3:27 
GeneralRe: Select subset of records from .xml Pin
cstrader2329-May-08 6:07
cstrader2329-May-08 6:07 
GeneralRe: Select subset of records from .xml Pin
Dave Kreskowiak9-May-08 7:40
mveDave Kreskowiak9-May-08 7:40 
QuestionHelp with Linq in VB.net Pin
Chinners9-May-08 0:24
Chinners9-May-08 0:24 
AnswerRe: Help with Linq in VB.net Pin
Guffa9-May-08 2:14
Guffa9-May-08 2:14 
A structure should generally be immutable, and the point of using a structure is mostly defated as you have a reference type inside it. Use a class instead of a structure.
Public Class UserInfo
   Public ID As Integer
   Public Name As String
End Structure

Dim Users As New List(Of UserInfo)

Users.Add(New UserInfo With {.ID = 1, .Name="Jim"})
Users.Add(New UserInfo With {.ID = 2, .Name="Bob"})
Users.Add(New UserInfo With {.ID = 3, .Name="Sue"})

Now you don't have to remove and add the item to update it:
(From UserInfo In Users Where UserInfo.ID = 3 Select UserInfo).First.Name = "Susan"


Despite everything, the person most likely to be fooling you next is yourself.

GeneralRe: Help with Linq in VB.net Pin
Chinners9-May-08 6:19
Chinners9-May-08 6:19 
GeneralRe: Help with Linq in VB.net Pin
Guffa9-May-08 7:16
Guffa9-May-08 7:16 
GeneralRe: Help with Linq in VB.net Pin
Chinners9-May-08 8:23
Chinners9-May-08 8:23 
Questionexcel sheet problem Pin
asha_s9-May-08 0:19
asha_s9-May-08 0:19 
AnswerRe: excel sheet problem Pin
Dave Kreskowiak9-May-08 3:22
mveDave Kreskowiak9-May-08 3:22 
QuestionExecuting Code at specified time Pin
Ariel Kazeed9-May-08 0:04
Ariel Kazeed9-May-08 0:04 
AnswerRe: Executing Code at specified time Pin
Christian Graus9-May-08 0:25
protectorChristian Graus9-May-08 0:25 
QuestionInformation on Initialimage Pin
nishkarsh_k8-May-08 21:36
nishkarsh_k8-May-08 21:36 
AnswerRe: Information on Initialimage Pin
Christian Graus8-May-08 21:52
protectorChristian Graus8-May-08 21:52 
GeneralRe: Information on Initialimage Pin
nishkarsh_k8-May-08 22:33
nishkarsh_k8-May-08 22:33 
GeneralRe: Information on Initialimage Pin
Christian Graus9-May-08 0:24
protectorChristian Graus9-May-08 0:24 
GeneralRe: Information on Initialimage Pin
nishkarsh_k9-May-08 1:10
nishkarsh_k9-May-08 1:10 
GeneralRe: Information on Initialimage Pin
Dave Kreskowiak9-May-08 3:14
mveDave Kreskowiak9-May-08 3:14 
AnswerRe: Information on Initialimage Pin
DanB19838-May-08 21:57
DanB19838-May-08 21:57 
AnswerRe: Information on Initialimage Pin
Steven J Jowett8-May-08 23:18
Steven J Jowett8-May-08 23:18 
QuestionRequire help in migrating the VB6 code to VB,NET [modified] Pin
Chaitanya kumar CVSS8-May-08 21:08
Chaitanya kumar CVSS8-May-08 21:08 
AnswerRe: Require help in migrating the VB6 code to VB,NET Pin
DanB19838-May-08 21:47
DanB19838-May-08 21:47 

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.