Using the envpc simulator (cont’d) – Rockwell Automation 2708-NBD VBASIC Language Development Kit User Manual

Page 46

Advertising
background image

Chapter 5

A-B VBASIC Application Library

5–9

Status Display

The application status display (one of the special status displays described in
the Attended Workstation User’s Manual) is not accessible through any
subroutines in ENV, and is not emulated in ENVPC. Use a section of code
which is conditional on the value of PcMode to set the status display.

Printing Reports and Forms

Since PRINT # USING.. is not supported, we recommend that you format
reports by first printing the report to a scratch file, then copying the file to
the device. Example:

listfile$ = “SCRATCH”
OPEN listfile$ FOR OUTPUT AS #1
PRINT #1, USING ” . . . . . . .
. . .
build your report, form, or complex response here
. . .
PRINT #1, USING ” . . . . . . .
CLOSE #1
OPEN listfile$ FOR INPUT AS #1
DO WHILE NOT EOF(1)
LINE INPUT #1, s$
SendQue s$

‘ This could be SendQue, Send, or SendCom

LOOP
CLOSE #1
KILL listfile$

Using the ENVPC Simulator
(cont’d)

Advertising