Using the envpc simulator (cont’d) – Rockwell Automation 2708-DH5B2L_DH5B4L Attended Workstation User Manual

Page 121

Advertising
background image

Chapter 13

A-B VBASIC Application Library

13–9

Status Display

The application status display (one of the special status displays described in
Chapter 4) 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
This manual is related to the following products: