EBSILON®Professional Online Documentation
EbsScript / EbsScript Functions / Simple In/Output Functions
In This Topic
    Simple In/Output Functions
    In This Topic

    Simple In/Output Functions


    These functions are used for a simple data transfer with the running EbsScript: writing information in the EbsScript output window and reading inputs from a simple input window. Note that the output can also be written in a file, if a path is specified for an EbsScript output file in the general settings of the tab "Path".

    Name

    Purpose

    Arguments

    Return value

    Example

    Comments

    print

    Prints the arguments in the output window. An “\n” is necessary for introducing a line feed.

    Real numbers can be formatted with the following syntax:

    Variable name:m:n

    The number after the first colon specifies the total number of digits to be used. The number after the second colon specifies the number of decimal places.

    Variable number of arguments. Arguments can be of each simple type (no fields).

    None

    print (“The result is “, r, “\n”);

    print (“The result is “, r:8:2, “\n”);

     

    println

    This function outputs one line into the console window. It differs from the simple “print” only by the fact that a line-wrap is appended to the end of the output

    Variable number of arguments. Arguments can be of each simple type (no fields).

     

    None

    println (“The result is “, r);

    println (“The result is “, r:8:2);

     

    clrscr

    This function deletes the existing outputs in the console window.

    None

    None

     

     

    read

    Read a value from the input window. If there are several arguments, then an input value is opened for each.

    Variable number of arguments. Arguments can be of each simple type (no fields), but no constants

    None

    Read (r);