Click here to Skip to main content
15,922,533 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: get String and call to a function accordingly Pin
helelark12328-Apr-08 22:54
helelark12328-Apr-08 22:54 
GeneralRe: get String and call to a function accordingly Pin
Mycroft Holmes29-Apr-08 1:53
professionalMycroft Holmes29-Apr-08 1:53 
GeneralSourcecontrol and contextmenustrip Pin
Gab2328-Apr-08 12:57
Gab2328-Apr-08 12:57 
GeneralString evaluation Pin
Phusys28-Apr-08 8:42
Phusys28-Apr-08 8:42 
GeneralRe: String evaluation Pin
Ashish Sehajpal28-Apr-08 9:32
Ashish Sehajpal28-Apr-08 9:32 
GeneralRe: String evaluation Pin
Phusys28-Apr-08 10:15
Phusys28-Apr-08 10:15 
GeneralRe: String evaluation Pin
helelark12328-Apr-08 18:58
helelark12328-Apr-08 18:58 
GeneralRe: String evaluation Pin
MidwestLimey28-Apr-08 11:59
professionalMidwestLimey28-Apr-08 11:59 
First, ask yourself why you want to do this.

If you need to maintain a disperate group of variable values by name then perhaps you should use a dictionary, i.e.

Dim myVariables As New Dictionary(Of String, Object)()

myVariables.Add("myVarName", 2)

...

Dim i As Integer = DirectCast(myVariables("myVarName"), Integer)


If you really need to maintain class level fields then you'll have to use reflection to access the values dynamically, and you'll need a reference to the encapsulating class.


I'm largely language agnostic

After a while they all bug me D'Oh! | :doh:


Questionform deactivation problem Pin
gq_the_fallen_angel28-Apr-08 7:59
gq_the_fallen_angel28-Apr-08 7:59 
AnswerRe: form deactivation problem Pin
nlarson1116-May-08 9:47
nlarson1116-May-08 9:47 
GeneralSet Caret Position in a TextBox Pin
VFaul28-Apr-08 7:51
VFaul28-Apr-08 7:51 
AnswerRe: Set Caret Position in a TextBox Pin
Smithers-Jones28-Apr-08 7:58
Smithers-Jones28-Apr-08 7:58 
Questionhelp with an idea in ReportViewer Pin
vbbeg28-Apr-08 7:20
vbbeg28-Apr-08 7:20 
AnswerRe: help with an idea in ReportViewer Pin
Jamal Abdul Nasir7-May-08 0:30
Jamal Abdul Nasir7-May-08 0:30 
GeneralCompress a directory Pin
Ashwiniyer28-Apr-08 6:48
Ashwiniyer28-Apr-08 6:48 
AnswerRe: Compress a directory Pin
Smithers-Jones28-Apr-08 7:55
Smithers-Jones28-Apr-08 7:55 
GeneralInsert Blob over OLEDB in OracleDB Pin
schlumpfger28-Apr-08 5:31
schlumpfger28-Apr-08 5:31 
GeneralRe: Insert Blob over OLEDB in OracleDB Pin
schlumpfger28-Apr-08 5:58
schlumpfger28-Apr-08 5:58 
GeneralSort selected items Pin
Sebastian T Xavier28-Apr-08 4:54
Sebastian T Xavier28-Apr-08 4:54 
GeneralRe: Sort selected items Pin
Kschuler28-Apr-08 9:46
Kschuler28-Apr-08 9:46 
GeneralRe: Sort selected items Pin
Sebastian T Xavier1-May-08 3:24
Sebastian T Xavier1-May-08 3:24 
QuestionMerge RTF Files Pin
Jats_4ru28-Apr-08 2:14
Jats_4ru28-Apr-08 2:14 
RantRe: Merge RTF Files Pin
Smithers-Jones28-Apr-08 3:13
Smithers-Jones28-Apr-08 3:13 
GeneralRe: Merge RTF Files Pin
Thomas Stockwell28-Apr-08 4:40
professionalThomas Stockwell28-Apr-08 4:40 
GeneralRe: Merge RTF Files Pin
Jats_4ru4-May-08 18:57
Jats_4ru4-May-08 18:57 

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.