I'm sure there is a command in Visual Basic, but I'm not sure what it is.
I have this VB code that builds a command but while I can get the command to display in the console, I can not figure out how to get the code to execute in the code behind file.
Here is the code:
Dim intMonth As DateTime = DateTime.Now.AddDays(-1)
Dim format As String = "m"
Dim strMonth as String
strMonth = (intMonth.ToString(format))
strMonth = strMonth.Replace(" ", "")
Console.WriteLine("Pages.OrchidTest0."+strMonth+"Link"+".Click(false)")
and what I want to execute (for today for example) would be:
Pages.OrchidTest0.November30Link.Click(false)
Thank you in advance
Chris
I have this VB code that builds a command but while I can get the command to display in the console, I can not figure out how to get the code to execute in the code behind file.
Here is the code:
Dim intMonth As DateTime = DateTime.Now.AddDays(-1)
Dim format As String = "m"
Dim strMonth as String
strMonth = (intMonth.ToString(format))
strMonth = strMonth.Replace(" ", "")
Console.WriteLine("Pages.OrchidTest0."+strMonth+"Link"+".Click(false)")
and what I want to execute (for today for example) would be:
Pages.OrchidTest0.November30Link.Click(false)
Thank you in advance
Chris