Click here to Skip to main content
15,907,328 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralConvert a string to expresion Pin
zaxos9-Feb-05 4:45
zaxos9-Feb-05 4:45 
GeneralRe: Convert a string to expresion Pin
numbrel9-Feb-05 8:46
numbrel9-Feb-05 8:46 
GeneralRe: Convert a string to expresion Pin
zaxos9-Feb-05 20:49
zaxos9-Feb-05 20:49 
GeneralRe: Convert a string to expresion Pin
numbrel10-Feb-05 4:53
numbrel10-Feb-05 4:53 
GeneralRe: Convert a string to expresion Pin
zaxos10-Feb-05 7:22
zaxos10-Feb-05 7:22 
GeneralRe: Convert a string to expresion Pin
numbrel10-Feb-05 7:49
numbrel10-Feb-05 7:49 
GeneralRe: Convert a string to expresion Pin
zaxos11-Feb-05 3:40
zaxos11-Feb-05 3:40 
GeneralRe: Convert a string to expresion Pin
numbrel11-Feb-05 8:23
numbrel11-Feb-05 8:23 
i need to keep in a variable the thing that the user typed and then evaluate that string.i have dim str as string = textbox.text
and i want to use that variable str in order to evaluate that string.


My understanding is that you want to use the input from the user to call a function which would return a string.

If that is correct, my suggestion is to use Select Case.

dim str as string = textbox.text<br />
dim str2 as string<br />
<br />
Select Case str<br />
   Case "function1"<br />
      str2 = function1()<br />
   Case "function2"<br />
      str2 = function2()<br />
   Case "function3"<br />
      str2 = function3()<br />
   .<br />
   .<br />
   .<br />
End Select


Am I close to understanding what you want?
GeneralRe: Convert a string to expresion Pin
zaxos13-Feb-05 20:05
zaxos13-Feb-05 20:05 
GeneralRe: Convert a string to expresion Pin
Christian Graus9-Feb-05 10:04
protectorChristian Graus9-Feb-05 10:04 
GeneralRe: Convert a string to expresion Pin
zaxos11-Feb-05 3:45
zaxos11-Feb-05 3:45 
GeneralSerialize help Pin
MrBean9-Feb-05 3:27
MrBean9-Feb-05 3:27 
GeneralRe: Serialize help Pin
Dave Kreskowiak9-Feb-05 16:51
mveDave Kreskowiak9-Feb-05 16:51 
GeneralRe: Serialize help Pin
Anonymous9-Feb-05 21:38
Anonymous9-Feb-05 21:38 
GeneralRe: Serialize help Pin
MrBean9-Feb-05 21:41
MrBean9-Feb-05 21:41 
GeneralRe: Serialize help Pin
Dave Kreskowiak10-Feb-05 5:45
mveDave Kreskowiak10-Feb-05 5:45 
GeneralRe: Serialize help Pin
MrBean10-Feb-05 20:54
MrBean10-Feb-05 20:54 
GeneralRe: Serialize help Pin
Dave Kreskowiak12-Feb-05 3:03
mveDave Kreskowiak12-Feb-05 3:03 
GeneralHelp Recording Audio Pin
GeneArnold9-Feb-05 3:12
GeneArnold9-Feb-05 3:12 
GeneralRe: App.Path (vb.net) Pin
Just Greeky Creek9-Feb-05 0:16
Just Greeky Creek9-Feb-05 0:16 
GeneralRe: App.Path (vb.net) Pin
Ritesh12349-Feb-05 0:23
Ritesh12349-Feb-05 0:23 
GeneralCustom Shaped Window (form) Pin
Member 86210338-Feb-05 22:49
Member 86210338-Feb-05 22:49 
GeneralRe: Custom Shaped Window (form) Pin
Just Greeky Creek9-Feb-05 0:18
Just Greeky Creek9-Feb-05 0:18 
GeneralRe: Custom Shaped Window (form) Pin
Kumar saurabh9-Feb-05 20:16
Kumar saurabh9-Feb-05 20:16 
GeneralRe: Custom Shaped Window (form) Pin
Just Greeky Creek9-Feb-05 20:44
Just Greeky Creek9-Feb-05 20:44 

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.