Call(), Format(), Call() format() – Teledyne LeCroy BTTracer_Trainer - BTTrainer Users Manual User Manual
Page 331

313
CATC BTT
RAINER
2.11
C
HAPTER
User’s Manual
Call()
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 (
Return value
None.
Comments
Format
is used to control the way that arguments will print out. The format
string may contain conversion specifications that affect the way in which the
arguments in the value string are returned. Format conversion characters,
flag characters, and field width modifiers are used to define the conversion
specifications.
Example
Format("0x%02X", 20);
would yield the string 0x14.
Parameter
Meaning
Default Value
Comments
function_name string
arg_list list
Used as the list of parameters in the function call.
Parameter
Meaning
Default Value
Comments
format string
value string or integer