Difference between revisions of "PUTFILE()"
From Lianjapedia
m (Text replace - "Recital" to "Lianja") |
Helen.george (Talk | contribs) |
||
Line 1: | Line 1: | ||
==Purpose== | ==Purpose== | ||
Function to display a Save As dialog allowing a filename to be selected or specified and returned. | Function to display a Save As dialog allowing a filename to be selected or specified and returned. | ||
− | |||
==Syntax== | ==Syntax== | ||
PUTFILE([<expC1>] [,<expC2>] [,<expC3>]) | PUTFILE([<expC1>] [,<expC2>] [,<expC3>]) | ||
− | |||
==See Also== | ==See Also== | ||
[[GETFILE()]] | [[GETFILE()]] | ||
− | |||
==Description== | ==Description== | ||
The PUTFILE() function displays a Save As dialog allowing a filename to be selected or specified and returned. The dialog allows navigation through directories and shows a list of relevant files in that directory. The cursor keys, Return key and tab key can be used to navigate the different sections under a Screen Forms. If the user selects or specifies a file, the PUTFILE() function returns the name of that file. If no file is selected or specified, the PUTFILE() function returns an empty string "". | The PUTFILE() function displays a Save As dialog allowing a filename to be selected or specified and returned. The dialog allows navigation through directories and shows a list of relevant files in that directory. The cursor keys, Return key and tab key can be used to navigate the different sections under a Screen Forms. If the user selects or specifies a file, the PUTFILE() function returns the name of that file. If no file is selected or specified, the PUTFILE() function returns an empty string "". | ||
− | |||
{| class="wikitable" | {| class="wikitable" | ||
Line 25: | Line 21: | ||
|- | |- | ||
|} | |} | ||
− | |||
− | |||
==Example== | ==Example== | ||
Line 32: | Line 26: | ||
cProgramSaveAs = putfile("Save the program","default.prg","prg") | cProgramSaveAs = putfile("Save the program","default.prg","prg") | ||
</code> | </code> | ||
− | |||
==Products== | ==Products== |
Revision as of 10:18, 12 December 2012
Purpose
Function to display a Save As dialog allowing a filename to be selected or specified and returned.
Syntax
PUTFILE([<expC1>] [,<expC2>] [,<expC3>])
See Also
Description
The PUTFILE() function displays a Save As dialog allowing a filename to be selected or specified and returned. The dialog allows navigation through directories and shows a list of relevant files in that directory. The cursor keys, Return key and tab key can be used to navigate the different sections under a Screen Forms. If the user selects or specifies a file, the PUTFILE() function returns the name of that file. If no file is selected or specified, the PUTFILE() function returns an empty string "".
Parameters | Required | Description |
---|---|---|
<expC1> | No | The text to display at the top of the dialog. If not specified, 'Save As' is displayed. |
<expC2> | No | The default filename displayed in the text entry area.. |
<expC3> | No | A file extension skeleton. If specified only files with this extension are shown. |
Example
cProgramSaveAs = putfile("Save the program","default.prg","prg")
Products
Lianja