Close

 

Purpose: Close the current schedule.

 

Argument  

Type

Required

Purpose

1

String

No

If "NoSave" then file closes immediately without asking user to first save file, even if the file has been altered without being saved.

 

 

Once a schedule is closed, it can no longer be referenced. To make sure that changes get saved, issue a .Save command. If a schedule is not named (previously saved), Milestones will display a Save File dialog box. If a Save is canceled at this point the schedule will remain open and will have lost contact with the calling application.  When .Close is issued on a just saved schedule it will close immediately. If no more schedules are open, then Milestones may shut down as well.

 

Example: Save and close the current schedule object.

With objMilestones

.Save ("c:\milestones\charts\my schedule.MLJ")

.Close

End With

 

 

 

 

Related Topics

  1. Activate
  2. KeepScheduleOpen

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

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

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