Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing dataset by reference
Message
 
 
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
C# 2.0
Miscellaneous
Thread ID:
01538045
Message ID:
01538104
Views:
26
>> Also 'ds = !null' is not valid syntax

Why not? Getting back to my method that creates a data set. After the data set is created I need to rename the table inside this data set. So what I do is the following
DataSet myDataSet = MyClass.FillDataSet( SqlCommand, out ErrorMessage);

if (myDataSet != null )
{
    myDataSet.Tables[0].TableName = "myTableName";
}
else
{
     // add to the error message explanation
    ErrorMessage = "Problem occurred. "  + ErrorMessage;
}
So far the above syntax has worked. Am I missing something? Thank you.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform