FileName (Record function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (Created page with "<span class="pageSubtitle"><section begin=dpl_desc/><section end=dpl_desc/></span> FileName property <p> <var>FileName</var> is a member of the <var>[...")
 
mNo edit summary
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<span class="pageSubtitle"><section begin=dpl_desc/><section end=dpl_desc/></span>
{{Template:Record:FileName subtitle}}
[[Category:Record methods|FileName property]]
<p>
<var>FileName</var> is a member of the <var>[[Record class|Record]]</var> class.
</p>
 
This <var>ReadOnly</var>, non-shared property returns
the name of the file in which the record resides.
For file context <var>Record</var> objects, <var>FileName</var> returns
For file context <var>Record</var> objects, <var>FileName</var> returns
the compile-time file context.
the compile-time file context.
Line 12: Line 5:
it returns one of the files in the group context.
it returns one of the files in the group context.
==Syntax==
==Syntax==
<p class="syntax">%fname = %rec:FileName
{{Template:Record:FileName syntax}}
</p>
===Syntax terms===
===Syntax Terms===
<table class="syntaxTable">
<table class="syntaxTable">
<tr><th>%fname</th>
<tr><th>%string</th>
<td>A string to contain the name of the file of the ''%rec'' record.
<td>A string to contain the name of the file of the <var class="term">record</var>.
</td></tr>
</td></tr>
<tr><th>%rec</th>
<tr><th>record</th>
<td>An instantiated <var>Record</var> object variable.
<td>A <var>Record</var> object.


</td></tr></table>
</td></tr></table>
==See also==
{{Template:Record:FileName footer}}

Latest revision as of 11:50, 8 February 2012

Return the name of the file that contains the Record object's record (Record class)

For file context Record objects, FileName returns the compile-time file context. For group context record objects, it returns one of the files in the group context.

Syntax

%string = record:FileName

Syntax terms

%string A string to contain the name of the file of the record.
record A Record object.

See also