NewFromRecordId (Record function): Difference between revisions
Jump to navigation
Jump to search
(Automatically generated page update) |
|||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Template:Record:NewFromRecordId subtitle}} | {{Template:Record:NewFromRecordId subtitle}} | ||
This | This constructor method creates a <var>Record</var> object from a recordId. This is only valid if the record is an [[Imagine Transparency]] record. | ||
==Syntax== | ==Syntax== | ||
{{Template:Record:NewFromRecordId syntax}} | {{Template:Record:file:NewFromRecordId syntax}} | ||
{{Template:Record:group:NewFromRecordId syntax}} | |||
===Syntax terms=== | ===Syntax terms=== | ||
<table class="syntaxTable"> | <table class="syntaxTable"> | ||
<tr><th>% | <tr><th>%fileRecord</th><td>A file context <var>Record</var> object</td></tr> | ||
<tr><th>%groupRecord</th><td>A group context <var>Record</var> object</td></tr> | |||
<tr><th nowrap="true"><var>[%(Record In </var>filOrGrp name<var>):]</var></th> | <tr><th nowrap="true"><var>[%(Record In </var>filOrGrp name<var>):]</var></th> | ||
<td>The optional class name in parentheses denotes a [[Notation conventions for methods#Constructors|virtual constructor]]. See [[#Usage notes|"Usage notes"]], below, for more information about invoking a virtual constructor.</td></tr> | <td>The optional class name in parentheses denotes a [[Notation conventions for methods#Constructors|virtual constructor]]. See [[#Usage notes|"Usage notes"]], below, for more information about invoking a virtual constructor.</td></tr> | ||
<tr><th>string</th> | <tr><th>recordId</th> | ||
<td>string</td></tr> | <td>The recordId to be used to locate the record. This must be an 8-byte (string) binary value.</td></tr> | ||
<tr><th>filename</th> | |||
<td>The name of the file in the group (for a group context call) used to locate the record. This must be a string value.</td></tr> | |||
</table> | </table> | ||
==Usage notes== | ==Usage notes== | ||
==Examples== | ==Examples== | ||
==See also== | ==See also== | ||
{{Template:Record:NewFromRecordId footer}} | {{Template:Record:NewFromRecordId footer}} |
Latest revision as of 23:03, 24 March 2025
Create new group-context Record object from recordId (Record class)
This constructor method creates a Record object from a recordId. This is only valid if the record is an Imagine Transparency record.
Syntax
%fileRecord = [%(Record In filOrGrp name):]NewFromRecordId( recordId)
%groupRecord = [%(Record In filOrGrp name):]NewFromRecordId( recordId, filename)
Syntax terms
%fileRecord | A file context Record object |
---|---|
%groupRecord | A group context Record object |
[%(Record In filOrGrp name):] | The optional class name in parentheses denotes a virtual constructor. See "Usage notes", below, for more information about invoking a virtual constructor. |
recordId | The recordId to be used to locate the record. This must be an 8-byte (string) binary value. |
filename | The name of the file in the group (for a group context call) used to locate the record. This must be a string value. |