string cTableName = this.oCompany.TableName; this.BindingContext[this.oCompany.GetCurrentDataSet(),cTableName].Position = this.oCompany.GetCurrentDataSet().Tables[cTableName].Rows.Count -1;I want to put this code on one of my subclassed buttons, i want it to check to see if a primary biz object is registered.
IF using PrimaryBizObject = .t. string cTableName = this.primaryBizObject.TableName; this.BindingContext[this.PrimaryBizObject.GetCurrentDataSet(),cTableName].Position = this.PrimaryBizObject.GetCurrentDataSet().Tables[cTableName].Rows.Count -1;I am trying to get rid of the reference to the oCompany item.