I was instantiating the BO like this:
And then calling its methods like this:
boSchedule_Hdr.FillByPrimaryKey(tiSchedHdr_id);
The error message did not give a true indication of what the actual problem was.
I am baffled. I must be doing something stupid.
This line of code:
boSchedule_hdr
gives me this error:
Error 1 An object reference is required for the non-static field, method, or property 'MicroFour.StrataFrame.Business.BusinessLayer.FillByPrimaryKey(int)' F:\TGIF\Libs\HandicapCalculator.cs 14 13 TGIF
boCalcPar.GetLast3Scores(
Error 2 An object reference is required for the non-static field, method, or property 'TGIF.BusinessObject.boSchedule_hdr.play_dte.get' F:\TGIF\Libs\HandicapCalculator.cs 36 57 TGIF
but this line of code works just fine:
boPerson.FillByPrimaryKey(tiPerson_id);
Also, the lines of code that are causing errors now worked just fine in the form where they were originally. I am trying to abstract the form method into a class of its own because I now need this functionality from multiple places.
Any ideas are greatly appreciated.
TIA.
Marcia