see

Prev Next

Function Names

see

Description

This function visualizes the specified variable by displaying all its contents. The contents of the underlying member and sub-member variables are also visualized.The types are displayed as well as protection settings. Regarding types: 'string' means softquoted string and "string" means quoted string.

Note: The function inspect() is a more interactive variant which allows hierarchical browsing of variables, especially if they are vary large and/or deeply nested structures and arrays.

Hint: This function is suitable for interactive and debugging use to take a look into variables.

Call as: procedure

Restrictions

Indirect parameter passing is disabled

Parameter count

1

Parameters

No.TypeDescription
1
code
variable
:string
Variable to see

Examples

    simple[] = 0123.00;
    array( words[], { 1, Me, you, true } );
    words[1] = { one, 2, { 2.5, two point six, 2.8 } };
    structure( sizes[], { whale, dog, ant }, {huge, small, tiny } );
    structure( sizes[dog], { jack russel, poodle, setter }, { smaller, medium, bigger } );

    see(simple[]);
    see(words []);
    see(sizes []);

Output

simple[]                123  "0123.00"             (numeral,full access)

words[]                 [Void]                     (void,full access)
Array [   0]            1  "1"                     (numeral,full access)
Array [   1]            3 elements:                (parameter set,full access)
                          one                        (softquoted string)
                          2  "2"                     (numeral)
                          3 elements:                (parameter set)
                            2.5  "2.5"                 (numeral)
                            two point six              (softquoted string)
                            2.8  "2.8"                 (numeral)
Array [   2]            you                        (softquoted string,full access)
Array [   3]            true                       (boolean,full access)

sizes[]                 [Void]                     (void,full access)
ant                     tiny                       (softquoted string,full access)
dog                     small                      (softquoted string,full access)
  jack russel           smaller                    (softquoted string,full access)
  poodle                medium                     (softquoted string,full access)
  setter                bigger                     (softquoted string,full access)
whale                   huge                       (softquoted string,full access)

Try it yourself: Open LIB_Function_see.b4p in B4P_Examples.zip. Decompress before use.

See also

inspect
variable view
list variables