Save

Purpose: Save a schedule to disk.

Returns: Variant; the handle of the file to which the schedule was saved. If this handle is 0, then the save did not complete.

Argument  

Type

Required

Purpose

1

String

No

Complete name of file, including the drive or share name, path, and .MLJ extension.

Notes:

 

Example: Save a file to the Milestones folder using a specific name.

With objMilestones

    dim mydocfolder as string,myfilename as string

    mydocfolder=.getmydocumentsfolder

    myfilename= mydocfolder + "Test File From VBA.MLP"

nFileHandleVariant = 0

nFileHandleVariant = .Save(myfilename)

nFileHandleInt = nFileHandleVariant

If (nFileHandleInt = 0) Then

  MsgBox "File Save Failed"

End If

End With

 

 

 

Related Topics

  1. Example 3 - Creating and Saving Under a New File Name

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

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.