SaveAs Method (ATEasy.Application) |
Version 7 |
Saves an ATEasy file to a file with same or different format
[ bSaved = ] Object.SaveAs( bsSourceFileName, bsDestinationFileName )
The SaveAs method syntax has the following parts:
Name |
Type |
Description |
Object |
Application |
Application object (from ATEasy library) |
bSaved |
Bool |
A boolean expression that specifies whether the file was successfully saved. |
bsSourceFileName |
Val String |
The source file name. |
bsDestinationFileName |
Val String |
The destination file name. |
bSaved can be one of the following:
Value |
Description |
True * |
The file was saved. |
False |
The file save encountered an error. |
This method is used to save an ATEasy project, program, system or a driver to another file name. The destination file name extension is used to determine the new format for the file (binary or text).
The following example saves a program (in binary format) to text format:
obATEasyApp=CreateObject("ATEasy.Application")
if obATEasyApp.SaveAs("c:\\my projects\\uut1\\a.prg", "c:\\my projects\\uut1\\a.pgt")=False
error -100, "unable to save"
endif
-