Rockwell-automation 2708-NBD VBASIC Language Development Kit Manual de usuario Pagina 66

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 84
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 65
A-B VBASIC and Visual BASIC
Appendix B
Differences Between
B18
SUB GetName (Name$)
DO
CLS
LINE INPUT Enter your name: ;Name$
PRINT Name$;Correct? ;
LINE INPUT; YN$
YN$ = UCASE$(YN$)
YN$ = Y or YN$ = “” THEN EXIT DO
LOOP
END SUB
SWAP vari1,vari2
Exchanges the values of two variables. See VBDOS manual for specific
details. Versions 1.0/1.1 of DH5 firmware do not support swapping single or
double precision variables. This will be corrected by future versions.
A$ = 1234
B$ = 4321
SWAP A$, B$ A$ = 4321, B$ = 1234
SYSTEM
Terminates program execution. END, STOP, and SYSTEM as well as
reaching the bottom of a A-B VBASIC program all have the same result:
the program is terminated. Program termination causes the following:
1. Files are left unchanged. In particular, if HOST was OPEN, it remains
OPEN;
2. Status Display #8 and the corresponding readonly menu display show
End by System, and the offset in the program where the termination
occurred;
3. An error: BASIC ERROR: End by System is transmitted to the HOST;
Any End by System error message with an offset of 0 (zero) is serious and
should be reported.
TIME$
Returns the current time from the operating system. An 8 byte string is
returned in the form hhmmssnn, representing hours(023), minutes, seconds,
and hundredths of a second. (The Clock Mode setting of the Setup Menus
has no effect on the format of the TIME$ variable.)
CurrTime$ = TIME$
TIME$ = stringexpression
Sets the time. See preceding entry. This method of setting the actual time is
in addition to the Setup Menus and the Network Directives which allow the
host to set the time. See also DATE$.
Vista de pagina 65
1 2 ... 61 62 63 64 65 66 67 68 69 70 71 ... 83 84

Comentarios a estos manuales

Sin comentarios