What I need to understand is how to get a result back from an execution statement such as:
thisCommand.CommandText = "SELECT myValue FROM DatabaseTable"
thisCommand.ExecuteNonQuery()
Is this possible? Is there a better way? If so, what do I need to do to make it happen?
When I run the following code, the value returned to my variable aResult is always -1, regardless of whether the search succeeds or not:
SQL_Command = "SELECT * FROM LookupItemsTexts WHERE [Text] = 'fred'"Log.WriteLine(SQL_Command) 'debug line'Now execute the commandthisConnection.Close() thisConnection.Open()thisCommand.CommandText = SQL_CommandaResult = thisCommand.ExecuteNonQuery()Log.WriteLine(aResult.ToString()) 'debug lineThanks,
Nigel Edwards.
I am evaluating Test Studio as a potential candidate for running automated testing on a Silverlight application. I watched the video “Test Studio – Guide to Success Part I.” This video was very helpful. However, I am having trouble automating a test for a Silverlight Out of Browser application.
First, I configured Test Studio to open the OOB application. When I click the record button, I get an unhandled exception.
In addition, I cannot watch the video “Out of Browser Silverlight Applications.” Right now this video would be very helpful. Likewise, none of the Silverlight Automation videos seem to work. Please help.