CS-Notes/docs/_style/prism-master/examples/prism-visual-basic.html

36 lines
772 B
HTML
Raw Normal View History

2018-12-19 14:09:39 +08:00
<h2>Comments</h2>
<pre><code>' Comment
REM This is a comment too</code></pre>
<h2>Strings and characters</h2>
<pre><code>"Foo""bar"
“”
"a"c</code></pre>
<h2>Dates and times</h2>
<pre><code># 8/23/1970 3:45:39AM #
#8/23/1970 #
# 3:45:39AM #
# 3:45:39#
# 13:45:39 #
# 1AM #
# 13:45:39PM #</code></pre>
<h2>Numbers</h2>
<pre><code>42S
.369E+14
3.1415R</code></pre>
<h2>Preprocessing directives</h2>
<pre><code>#ExternalChecksum("c:\wwwroot\inetpub\test.aspx", _
"{12345678-1234-1234-1234-123456789abc}", _
"1a2b3c4e5f617239a49b9a9c0391849d34950f923fab9484")</code></pre>
<h2>Keywords</h2>
<pre><code>Function AddNumbers(ByVal X As Integer, ByVal Y As Integer)
AddNumbers = X + Y
End Function
Module Test
Sub Main()
End Sub
End Module</code></pre>