GetNumberOfLines

 

Purpose:Obtain the number of task rows currently allocated in the schedule.

 

Returns: Variant; The number of task rows in the schedule (1 based)

 

Arguments: None

 

 

Example: This example gets the number of task rows.

With objMilestones

  nNumTaskLines = .GetNumberOfLines

  MsgBox nNumTaskLines

End With

 

Milestones always allocates enough task rows to maintain a full page on the last page of the schedule, so if data only exists in row 1, and the lines per page setting is 20, then .GetNumberOfLines would return 20 in most cases.

 

 

 

 

Related Topics

  1. DeleteAllTaskLines
  2. DeleteTaskLine
  3. GetLastUsedLine
  4. GetLinesPerPage

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

To effectively program with this interface, it's important to learn all about Milestones Professional.  Learn about Milestones.

Milestones Professional 2023 Automation Methods and Properties.  © Copyright 2000-2023, KIDASA Software, Inc. All rights reserved.