G
Guest
I am new to .NET and was wondering if there is a function like the evaluate function in Cold Fusion that lets you use the value of something as a variable name instead of using a select case statement. For example:
Dim Line as String = "Action=Go"
Dim URLParts() As String = Line.Split("=")
Select Case URLParts(0).ToLower
Case "action"
us.CapabilityUrls.setAction(URLParts(1))
instead I want to be able to say something like
us.CapabilityUrls.set & evaluate(URLParts(0).ToLower) &(UrLParts(1))
In cold fusion you can do this by using an evaluate function. Any ideas?
Dim Line as String = "Action=Go"
Dim URLParts() As String = Line.Split("=")
Select Case URLParts(0).ToLower
Case "action"
us.CapabilityUrls.setAction(URLParts(1))
instead I want to be able to say something like
us.CapabilityUrls.set & evaluate(URLParts(0).ToLower) &(UrLParts(1))
In cold fusion you can do this by using an evaluate function. Any ideas?