Teledyne-lecroy CATC Scripting Language Reference Manual Manual do Utilizador Página 36

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 57
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 35
C
HAPTER
11
Primitives
CATC Scripting Language
32
CHAPTER 11:
P
RIMITIVES
Primitive functions are called similarly to regular functions, but they are imple-
mented outside of the language. Some primitives support multiple types for certain
arguments, but in general, if an argument of the wrong type is supplied, the function
will return null.
Call()
Call( <function_name string>, <arg_list list> )
Parameter Meaning Default Value Comments
function_name string
arg_list list Used as the list of parameters in the function call.
Return value
Same as that of the function that is called.
Comments
Calls a function whose name matches the function_name parameter. All scope
rules apply normally. Spaces in the function_name parameter are interpreted as
the ‘_’ (underscore) character since function names cannot contain spaces.
Example
Call("Format", ["the number is %d", 10]);
is equivalent to:
Format("the number is %d", 10);
Format()
Format (<format string>, <value string or integer>)
Parameter Meaning Default Value Comments
format string
value string or integer
Return value
None.
Vista de página 35
1 2 ... 31 32 33 34 35 36 37 38 39 40 41 ... 56 57

Comentários a estes Manuais

Sem comentários