home *** CD-ROM | disk | FTP | other *** search
/ ftp.tcs3.com / ftp.tcs3.com.tar / ftp.tcs3.com / DRIVERS / Audio / Office2010 / InfoPath.en-us / InfLR.cab / FL_SortAnArray_snippet_142574_ENU____.3643236F_FC70_11D3_A536_0090278A1BB8 < prev    next >
Extensible Markup Language  |  2008-09-17  |  1KB  |  30 lines

  1. ∩╗┐<?xml version="1.0" encoding="UTF-8"?>
  2. <CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
  3.   <CodeSnippet Format="1.0.0">
  4.     <Header>
  5.       <Title>Sort An Array</Title>
  6.       <Author>Microsoft Corporation</Author>
  7.       <Description>Declares an array of String objects, populates it, and then sorts it alphabetically.</Description>
  8.       <Keywords>
  9.       </Keywords>
  10.       <Shortcut>arrSort</Shortcut>
  11.     </Header>
  12.     <Snippet>
  13.       <Imports>
  14.         <Import>
  15.           <Namespace>System</Namespace>
  16.         </Import>
  17.       </Imports>
  18.       <Declarations>
  19.         <Literal>
  20.           <ID>InitialValues</ID>
  21.           <Type>Object</Type>
  22.           <ToolTip>Replace with the initial values of the array.</ToolTip>
  23.           <Default>{"lion", "turtle", "ostrich"}</Default>
  24.         </Literal>
  25.       </Declarations>
  26.       <Code Language="VB" Kind="method body"><![CDATA[Dim animals() As String = $InitialValues$
  27. Array.Sort(animals)]]></Code>
  28.     </Snippet>
  29.   </CodeSnippet>
  30. </CodeSnippets>