This wiki is out of date, use the continuation of this wiki instead

Delete text

From FenixWiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 18:19, 23 July 2007 (edit)
Rincewind (Talk | contribs)

← Previous diff
Revision as of 09:35, 7 August 2007 (edit) (undo)
Sandman (Talk | contribs)
m (Parameters)
Next diff →
Line 9: Line 9:
== Parameters == == Parameters ==
{| {|
-| '''INT''' [[TextID]] || - Identifier of the text you want to delete. This identifier should have been appointed to a text earlier on.+| '''INT''' TextID || - [[TextID]] of the text to be deleted.
|} |}

Revision as of 09:35, 7 August 2007


Contents

Definition

INT delete_text( <INT TextID> )

Deletes text from the screen.

Parameters

INT TextID - TextID of the text to be deleted.

Returns

<If someone knows, please edit!>

Notes

Delete_text(all_text) or delete_text(0) deletes all text from the screen!

Errors

<If someone knows, please edit!>

Example

Program test;
Global
    My_text;
Begin
    My_text=write(0,320/2,200/2,4,"Press space to delete this.");
    Loop
        If (key(_space))
            Delete_text(My_text);
        End
        Frame;
    End
End

Used in example: write(), key()

This will result in something like:
Image:delete_text.jpg

Personal tools