ATL Development   «Prev 

Add Max Records Num Records

Here are the steps through the process of adding both MaxRecs and NumRecs:
  1. We add read-only properties the same way we added CurRec. Right-click IReadPhBook in the ClassView pane of the Workspace window.
  2. Select Add Property ... and click OK. This will bring up the Add Property to Interface dialog.
  3. In the Add Property to Interface dialog, open the Property Type drop-down menu.
  4. Choose long as the property type.
  5. Once you've chosen long as the property type, type MaxRecs as the property name. Because this is to be a read-only property, uncheck the Put function under Function Type. When you're done, click OK to finish.
  6. The property MaxRecs has been added to IReadPhBook. Next we want to add NumRecs as a read-only property. Right-click IReadPhBook in the ClassView pane of the Workspace window.
  7. Select Add Property ... and click OK. This will bring up the Add Property to Interface dialog.
  8. In the Add Property to Interface dialog, open the Property Type drop-down menu.
  9. Choose long as the property type.
  10. Once you chose long as the property type, type NumRecs as the property name. Because this is a read-only property, uncheck Put function. When you are done, click OK.
  11. The property NumRecs is added to IReadPhBook. This is the end of the simulation.