Rockwell-automation 2708-NBD VBASIC Language Development Kit Instrukcja Użytkownika Strona 51

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 84
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 50
A-B VBASIC and Visual BASIC
Appendix B
Differences Between
B3
LINE INPUT Request$
IF Request$ = JUMP THEN CHAIN JUMP
The interpreter does not tolerate a CHAIN to a nonexistent program. Make
sure that you have downloaded any program which will be CHAINed to,
before any other program attempts to CHAIN to it, or the program will crash
with a Bad Chain File error message. A special set of Network Directives
is required to download a program for the express purpose of a subsequent
CHAIN. See the Users Guide for a further discussion of these Network
Directives.
CHR$(code)
Returns a onecharacter string whose ASCII code is the argument.
Msg$ = CHR$(34) + Quoted string + CHR$(34)
This example adds a doublequote character to the beginning and the end of
the string.
CINT(numericexpression)
Converts a numericexpression to an integer by rounding the expressions
fractional part.
CLNG(numericexpression)
Converts a numericexpression to a long (4byte) integer by rounding the
expressions fractional part.
CLOSE [ [#]filenumber[,[#]filenumber]...]
Concludes I/O to a file or device. Closing some reserved files, such as
HOST, have additional side effects. See the description of those devices for
details.
OPEN EMPLOYEE FOR OUTPUT AS #1
PRINT #1, Employee –”;EmpBadge$
CLOSE #1
CLS [{ 0 | 1 | 2 }]
Clears the front panel LCD, homes the cursor. All forms shown are
accepted, but all have the same effect.
CONST constname=expression
In a procedure a CONST overrides a GLOBAL variable of the same name.
The text of a string CONST is to be present in one place, regardless of the
number of times it is referenced. However, because string CONST
Przeglądanie stron 50
1 2 ... 46 47 48 49 50 51 52 53 54 55 56 ... 83 84

Komentarze do niniejszej Instrukcji

Brak uwag