>>>>Okay, this is evidence that I've thought like a VFP programmer for a long time. What I want to do might look something like this:
>>>>
>>>>
>>>>public class MyClass()
>>>>{
>>>> DataRow table1;
>>>> DataRow table2;
>>>>
>>>> public void AssignRow(DataRow input)
>>>> {
>>>> tableName = input.Table.TableName; // (could be "table1" or "table2")
>>>> &tableName = input; //notice the clever use of VFP syntax...
>>>> }
>>>>}
>>>>
>>>>
>>>>Any way of doing this short of a potentially long select statement?
>>>>
>>>>Thanks
>>>
>>>In the latest version of C# you can use dynamic keyword.
>>>
>>>So,
>>>
>>>dynamic d;
>>>d = 5;
>>>d = new SqlConnection();
>>>
>>>etc.
>>>
>>>But 'static when possible, dynamic when necessary'
>>
>>:o)))
>>What is the "latest" version?
>>2012?
>
>c# 4.0 has it - I can type dynamic there.
Thank you.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.