Saving your program -10, Saving your program – Rockwell Automation 1747-PBASE BASIC Development Software Programming Manual User Manual

Page 30

Advertising
background image

Publication 1746-PM001A-US-P

2-10 Getting Familiar with Your Development Software

5.

5.

5.

5. Use the previously saved program:

FIRST.BDL

6.

6.

6.

6. Move the cursor to the top left corner of the window.

7.

7.

7.

7. Type in the following program:

{THIS IS A FIRST PROGRAM}

REM FIRST PROGRAM

FOR X=1 TO 100

A=X*2

PRINT A

NEXT X

END

Notice that there are no line numbers entered here. Also notice that when you
type in the lines within the for/next loop, they are indented. This is because the
BASIC development software recognizes that you are entering a BASIC
development language program (since your filename extension is BDL) and
the default parameters are set for smart indenting. There are a number of other
related parameters for BDL files discussed in Chapter 3.

Saving Your Program

Path: Edit mode

File

save file as

Path: Edit mode

File

save file as

save file in current

window

QuickStroke: [F5]

We recommend that you periodically save sizeable programs as you work on them
to avoid losing large quantities of work in the event of a system error or power
failure.

The BASIC development software has an autosave feature that offers two methods
for automatically saving files as you work on them. It also has a backup feature with
several methods for making backup files. These features are described in Chapter 3.

1. If using a mouse, move the cursor over to the File menu at the top left and click

the left mouse button. If you do not have a mouse, press [

F2

] to move the

cursor to the pull-down menus. Cursor to the right or left to highlight the File
menu and press

[Enter]

.

2.

2.

2.

2. Move the cursor to

Save file in current window

and press

[RETURN]

or

click the left mouse button.

Since you have previously named and saved the file in the current window and
selected

Save file in current window

, the software assumes you are saving

it under its existing name. A message appears in the message line indicating
that the save was completed.

Advertising