Keep reading, Perry ... that's not what Rick was asking about. <g>
~~Bonnie
>Off the top of my head, from what I know you can do it from the constructor of the derived class:
>
>
>public DerivedClass (string myParam) : base("TableName")
>{
> yada, yada, yada.
>}
>
>
>
>The parameter list gets run first, so that involves the call to the base class constructor.
>
>Just to practice my knowledge, you can also use "this" in the param list to specify another constructor in the same class. So if you have:
>
>1) A constructor that accepts 2 params, a first and last name
>2) A constructor that accepts 3 params, first name, last name and ssn
>
>You can have the 2nd constructor header
>
>public myConstructor(string mySsn) : this(string first, string last)
>
>So you only write the constructor code to process name once.
>
>
>>
>>You can add a call to base after setting the tablename field value<>>
>>No, John ... you can't do that in the constructor of a class.
>>
>>I'm sure there's a way to do what Rick wants to do, but I'm not coming up with it off the top of my head. Maybe I need to sleep on it. <s>
>>
>>~~Bonnie
>>
>>
>>
>>
>>>>
>>>>
>>>>public class AuthorBizObj: BizObj
>>>>{
>>>> public AuthorBizObj()
>>>> {
>>>> this.TableName="Authors";
>>>> }
>>>>}
>>>>
>>>>
>>>
>>>You can add a call to base after setting the tablename field value