(LOGO.JPG) Python for OpenVMS

(go to: table of contents, index, list of vms_smg, prev: PREV, next: NEXT)


DELETE_LINE - Delete Line

Deletes lines from a virtual display.

Format:

    status = vms_smg.delete_line (display_id, \
                    start_row, [number_of_rows])
Returns:
status
Condition code as returned from SMG$DELETE_LINE. Either SS$_NORMAL or SMG$_WILUSERMS are returned here - all other codes produce a Python exception.
Arguments:
display_id
Virtual display in which the line(s) are to be deleted.
start_row
The row position at which to start the deletion.
number_of_rows
The number of rows to be deleted.
Examples:
>>> import vms_smg
>>> import vms_smgdef

>>> # create a new DECwindows terminal using SMG
>>> status, pasteboard_id, number_of_pasteboard_rows, \
... number_of_pasteboard_columns, type_of_terminal,   \
... device_name = vms_smg.create_pasteboard           \
...   (None, vms_smgdef.SMG_M_WORKSTATION)
>>>

>>> # create a virtual display
>>> status, display_id = vms_smg.create_virtual_display \
...         (5, 10, vms_smgdef.SMG_M_BORDER, None, None)
>>>

>>> # paste the virtual display
>>> status = vms_smg.paste_virtual_display \
...          (display_id, pasteboard_id, 3, 5, None)
>>>

>>> # put some text in the display
>>> status = vms_smg.put_chars (display_id, 'Line1Line1Line1', 1, 1)
>>> status = vms_smg.put_chars (display_id, 'Line2Line2Line2', 2, 2)
>>> status = vms_smg.put_chars (display_id, 'Line3Line3Line3', 3, 3)
>>> 

Screen layout, file: VMS_SMG_015.JPG

(picture VMS_SMG_015.JPG)

>>> # delete a line
>>> status = vms_smg.delete_line (display_id, 2, 1)
>>>

Screen layout, file: VMS_SMG_017.JPG

(picture VMS_SMG_017.JPG)


(go to: table of contents, index, list of vms_smg, prev: PREV, next: NEXT)

10-SEP-2000 ZE.