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

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 84
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 76
Appendix C
Application Library Subroutines
C9
The menu string is a string in which each menu entry is preceded by a |
(vertical bar). Thus a menu$ such as:
Payment Type: | Mastercard | Visa | Amex \ + | Other | Cash
has 5 entries; Mastercard is the 1st entry and may also be selected by
pressing M. Cash is the 4th entry and may also be selected by pressing C.
Note the use of \ to start a new line (the fact that the string was made by
adding two strings together cannot be detected by Menu%).
The actual menu displayed will look like:
Payment Type: <Mastercard> Visa Amex
Other Cash
The startingitem% is a value of 1 to 10, to indicate wh ich entry should be
selected first. Note that the global EXITOFFSET% is set to the entry which
was selected at exit.
e = Menu% ( startingitem%, menu$ )
FUNCTION Menu% ( sitem%, m$ )
LogE! Returns the natural log of a value.
x! = LogE! ( x! )
FUNCTION LogE! ( x )
Log10! Returns the base 10 log of a value.
x! Log10! ( x! )
FUNCTION Log10! ( x )
Exponential! Returns e to the x
x! = Exponential! ( x! )
FUNCTION Exponential! ( x )
Power! Returns x to the power of y.
z! = Power! ( x!, y! )
FUNCTION Powerl! ( x, y )
CubeRoot! Returns the cube root of x.
x! = CubeRoot! ( x! )
FUNCTION CubeRoot! ( x )
SquareRoot! Returns the square root of x.
x! = SquareRoot! ( x! )
FUNCTION SquareRoot! ( x )
Vista de pagina 76
1 2 ... 72 73 74 75 76 77 78 79 80 81 82 83 84

Comentarios a estos manuales

Sin comentarios