|
The PowerBuilder File Menu has two menu items for saving objects (Applications, Menus, Windows, and Window Objects) and user-defined functions: Save and Save As.
Use Save to save changes to an existing object or user-defined function in the current file.
Use Save As to name and save a new object or user-defined function or to save an existing object or user-defined function under a new name or in a different location (disk, directory, or subdirectory). A save window displays:
The name of the current object or user-defined function and a list of objects or user-defined functions in the current library.
The name of the current library (the library containing the current object or user-defined function)
The name of the current directory (the directory containing the current library)
A list of libraries and subdirectories in the current directory and other directories and drives that are currently available
The current directory and library are the defaults. To change the current directory, select another directory from the list. To change the library, enter the name of the library in the Library Name box or select a library from the list.
TIP: Library names have the file extension .PBL.
To save the object, script, or user-defined function using Save:
Select Save on the File Menu. PowerBuilder saves the object or user-defined function under its current name.
Note:When you save an object for the first time, you can enter comments in the Comments box. PowerBuilder associates these comments with the object and they display in the Select window for the painter, in the Save window, and in the Library Painter if you specify that you want to display comments.
To save the object, script, or user-defined function using Save As:
- Select Save As on the File Menu. PowerBuilder displays the Save window. The Save window is similar to the Select window. To display a picture of a typical Select window and information about the fields in the select window, click here.
TIP: To replace the file with the contents of the active window, click the OK button or press Enter. PowerBuilder saves the file using the current filename.
- Move to the name box and enter the name you want to use to save the object or user-defined function. PowerBuilder will supply the file extension.
- Enter any comments you want to associate with the object. PowerBuilder associates these comments with the object and they display in the Select window for the painter and in the Library Painter if you specify that you want to display comments.
- Click the OK button or press Enter.
Note:When you use Save As to save an object, you can add and modify the comments associated with the object.
Examples:
To modify a window and change the original, use Save; the window is saved under its current name.
To modify a window without changing the original, use Save As and save the modified window under another name.
|