HP 3000 Manuals

LDISP [ HP Business BASIC/XL Reference Manual ] MPE/iX 5.0 Documentation


HP Business BASIC/XL Reference Manual

LDISP 

The LDISP statement provides an alternative form of output for the DISP
statement.  Under normal circumstances, the LDISP statement clears the
current line before printing the output list.  The screen line clears
from the cursor to the end of the line.  Note that only one line clears
even if multiple lines prints.  LDISP interacts differently with an
active JOINFORM. If the cursor is within the form, LDISP will move the
cursor to the first line after the form, clear the line and then print.
For more information about how LDISP interacts with JOINFORM, refer to
Appendix F.

Syntax 

                         [,]
LDISP [output_item_list] [;]

Parameters 

output_item_ list   [ , ]...output_item [ { [ , ]...} output_item ]...]

output_item         One of the following:

                    num_expr 

                    str_expr 

                    array_name(*)       Array reference.  See "Array
                                        References in Display List" in
                                        chapter 6.

                                        {PAGE            }
                                        {{CTL}           }
                    output_function     {{LIN}           }
                                        {{SPA} (num_expr)}
                                        {{TAB}           }

                                        See "Output Functions in Display
                                        List" in chapter 6.

                    FOR_clause          (FOR num_var=num_expr1 TO
                                        num_expr2 [STEP num_expr3],
                                        d_list)

                                        See "FOR Clause in Display List"
                                        in the DISP and PRINT statements
                                        in this chapter.

Examples 

     10 V$="Hi there."
     20 DISP V$
     30 LDISP V$

In the above example, if you type RUN and the screen already has
characters on the next two lines:

        >RUN
        12345678901234567890
        12345678901234567890

then following program execution, the screen contains

        >RUN
        Hi there.01234567890
        Hi there.



MPE/iX 5.0 Documentation