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

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 84
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 62
A-B VBASIC and Visual BASIC
Appendix B
Differences Between
B15
RETURN
Returns control from a sub routine. No line number or line label clauses are
supported in A-B VBASIC.
RIGHT$(stringexpression, n)
Returns the rightmost n characters of a string.
A$ = Now is the time for all good men to come to the aid of
B$ = RIGHT$(A$, 6) B$ = aid of
RND
Returns a singleprecision random number between 0 and 1. No argument is
allowed in the statement. To produce random integers in a given range, use
the following formula:
INT((upperrange lowerrange + 1) * RND + lowerrange)
RTRIM$(stringexpression)
Returns a string with trailing (righthand) spaces removed.
A$=When I was younger, so much younger than today
A$=RTRIM$(A$) Removes trailing spaces.
SEEK(filenumber)
Returns the current file position. See the chapter on Special Devices for
details on specific devices. See VBDOS manual for detailed information.
SEEK [#]filenumber,position
Sets the position in a file for the next read or write. See the chapter on
Devices for details on specific devices.
SELECT CASE text_expression
Executes one or more statements depending on the value of text expression.
The CASE ELSE clause is mandatory in A-B VBASIC, even if it does
nothing. See VBDOS manual for specific details.
SELECT CASE text_expression
CASE expressionlist1
statements
CASE expressionlist2
statements
CASE ELSE
Przeglądanie stron 62
1 2 ... 58 59 60 61 62 63 64 65 66 67 68 ... 83 84

Komentarze do niniejszej Instrukcji

Brak uwag