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_SubWithByRefParam_snippet_142761_ENU____.3643236F_FC70_11D3_A536_0090278A1BB8 < prev    next >
Extensible Markup Language  |  2008-06-12  |  2KB  |  44 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>Define a Sub with a ByRef parameter</Title>
  6.       <Author>Microsoft Corporation</Author>
  7.       <Description>Defines a Sub with an argument whose value can be changed by the code in the method.</Description>
  8.       <Shortcut>SubByRef</Shortcut>
  9.     </Header>
  10.     <Snippet>
  11.       <Imports>
  12.         <Import>
  13.           <Namespace>System</Namespace>
  14.         </Import>
  15.         <Import>
  16.           <Namespace>Microsoft.VisualBasic</Namespace>
  17.         </Import>
  18.       </Imports>
  19.       <Declarations>
  20.         <Literal>
  21.           <ID>MethodName</ID>
  22.           <Type>String</Type>
  23.           <ToolTip>Replace with the method name.</ToolTip>
  24.           <Default>MyMethod</Default>
  25.         </Literal>
  26.         <Literal>
  27.           <ID>ParameterName</ID>
  28.           <Type>String</Type>
  29.           <ToolTip>Replace with the parameter name.</ToolTip>
  30.           <Default>paramName</Default>
  31.         </Literal>
  32.         <Object>
  33.           <ID>ParameterType</ID>
  34.           <Type>Type</Type>
  35.           <ToolTip>Replace with the Type of the parameter</ToolTip>
  36.           <Default>String</Default>
  37.         </Object>
  38.       </Declarations>
  39.       <Code Language="VB" Kind="method decl"><![CDATA[Sub $MethodName$(ByRef $ParameterName$ As $ParameterType$)
  40.  
  41. End Sub]]></Code>
  42.     </Snippet>
  43.   </CodeSnippet>
  44. </CodeSnippets>