New (SortOrder constructor): Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
<span style="font-size:120%; color:black"><b>Create SortOrder object that has no sorting order or sorting key</b></span> | <span style="font-size:120%; color:black"><b>Create SortOrder object that has no sorting order or sorting key</b></span> | ||
[[Category:SortOrder methods|New constructor]] | [[Category:SortOrder methods|New constructor]] | ||
Line 6: | Line 7: | ||
New is a member of the [[SortOrder class]]. | New is a member of the [[SortOrder class]]. | ||
</p> | </p> | ||
This method creates a new instance of the SortOrder class. | This method creates a new instance of the SortOrder class. | ||
The SortOrder created by New is empty, that is, without a | The SortOrder created by New is empty, that is, without a | ||
Line 15: | Line 16: | ||
%sord = New | %sord = New | ||
===Syntax terms=== | ===Syntax terms=== | ||
< | <table> | ||
< | <tr><th><i>%sord</i> | ||
< | </th><td>A SortOrder object variable to contain the new object instance. | ||
</td></tr></table> | |||
</ | |||
===Usage Notes=== | ===Usage Notes=== | ||
<ul> | <ul> | ||
Line 26: | Line 26: | ||
name and collection item type, or with an object variable, even if | name and collection item type, or with an object variable, even if | ||
that object is null: | that object is null: | ||
< | <p class="code"><nowiki>%sord = new | ||
%sord = %(sortOrder for object stringlist):new | |||
%sord = %sord:new | |||
%arraylist2 = %arraylist1:sortnew(new) | |||
</nowiki></p> | |||
</ | |||
</ul> | </ul> |
Revision as of 16:29, 28 February 2011
Create SortOrder object that has no sorting order or sorting key
New is a member of the SortOrder class.
This method creates a new instance of the SortOrder class. The SortOrder created by New is empty, that is, without a sorting order or sorting key. Applied as the parameter of a Sort or SortNew method, an empty SortOrder produces a copy of the input collection.
Syntax
%sord = New
Syntax terms
%sord | A SortOrder object variable to contain the new object instance. |
---|
Usage Notes
- New is a constructor and as such can be called with no object,
with an explicit class
name and collection item type, or with an object variable, even if
that object is null:
%sord = new %sord = %(sortOrder for object stringlist):new %sord = %sord:new %arraylist2 = %arraylist1:sortnew(new)