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

Chdir

From FenixWiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 15:16, 19 April 2007 (edit)
Sandman (Talk | contribs)

← Previous diff
Revision as of 19:20, 26 June 2007 (edit) (undo)
Sandman (Talk | contribs)
m
Next diff →
Line 3: Line 3:
==Definition== ==Definition==
-'''INT''' ChDir ( <'''STRING''' folder> )+'''INT''' ChDir ( <'''STRING''' directoryname> )
Sets the current path of execution. Sets the current path of execution.
Line 9: Line 9:
== Parameters == == Parameters ==
{| {|
-| '''STRING''' folder || - The folder to be entered from the current path of execution or a new path of execution.+| '''STRING''' directoryname || - The name of the directory to be entered from the current path of execution or a new path of execution.
|} |}
Line 15: Line 15:
'''INT''' : Success '''INT''' : Success
{| {|
-| 0 (false) || - Setting of current path of execution failed.+| 0 ([[false]]) || - Setting of current path of execution failed.
|- |-
-| 1 (true) || - Setting of current path of execution was successful.+| 1 ([[true]]) || - Setting of current path of execution succeeded.
|} |}

Revision as of 19:20, 26 June 2007


Contents

Definition

INT ChDir ( <STRING directoryname> )

Sets the current path of execution.

Parameters

STRING directoryname - The name of the directory to be entered from the current path of execution or a new path of execution.

Returns

INT : Success

0 (false) - Setting of current path of execution failed.
1 (true) - Setting of current path of execution succeeded.

Example

Program example;
Begin

    say(CD());
    ChDir("..");
    say(CD());

    Loop
        frame;
    End

End

Used in example: cd(), say()

Personal tools