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_ProcedureWithReturn_snippet_142757_ENU____.3643236F_FC70_11D3_A536_0090278A1BB8 < prev    next >
Extensible Markup Language  |  2008-06-12  |  1KB  |  39 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 Function</Title>
  6.       <Author>Microsoft Corporation</Author>
  7.       <Description>Uses the Function keyword to define a procedure that returns a value.</Description>
  8.       <Keywords>
  9.       </Keywords>
  10.       <Shortcut>Function</Shortcut>
  11.     </Header>
  12.     <Snippet>
  13.       <Declarations>
  14.         <Literal>
  15.           <ID>FuncName</ID>
  16.           <Type></Type>
  17.           <ToolTip>Replace with the name of the function.</ToolTip>
  18.           <Default>MyFunc</Default>
  19.         </Literal>
  20.         <Literal>
  21.           <ID>ReturnType</ID>
  22.           <Type></Type>
  23.           <ToolTip>Replace with the return type of the function.</ToolTip>
  24.           <Default>Integer</Default>
  25.         </Literal>
  26.         <Literal>
  27.           <ID>ReturnValue</ID>
  28.           <Type></Type>
  29.           <ToolTip>Replace with the return value of the function.</ToolTip>
  30.           <Default>0</Default>
  31.         </Literal>
  32.       </Declarations>
  33.       <Code Language="VB" Kind="method decl"><![CDATA[Function $FuncName$() As $ReturnType$
  34.  
  35. Return $ReturnValue$
  36. End Function    ]]></Code>
  37.     </Snippet>
  38.   </CodeSnippet>
  39. </CodeSnippets>