left of ->position must point to struct/class etc

I dont seem to be able to find the error causeing the problen in the title

System::Void btnFirst_Click(System::Object ^sender, System::EventArgs ^, e)
{
    this->BindingContext->Contains(dsDailyOrders, "Workorder")->Position = 0;
}


thanks in advance for any help.


Answer this question

left of ->position must point to struct/class etc

  • swordllake

    Just a guess! Contains returns usually a bool value.
    So this->BindingContext->Contains(dsDailyOrders, "Workorder") returns a bool and the bool operator has no operator ->



  • beefeater

    How would one fix it.
  • left of ->position must point to struct/class etc