06 2015 档案
摘要:Imports System.IOPublic Class Form1 'Create private varables Private addressDList As Dictionary(Of String, List(Of String)) Private lstAddress As List...
阅读全文
posted @ 2015-06-17 15:41
xymum
摘要:Public Class Address Private addrNickName As String Private addrFullName As String Private addrEmail As String Public Sub New(ByVal nickName As Stri...
阅读全文
posted @ 2015-06-17 15:40
xymum
摘要:Public Class Form1 Private Const NUM_SIDES = 6 Private roll As New Random() Private cash As Integer = 100 Private betAmount As Integer = 10 Privat...
阅读全文
posted @ 2015-06-17 15:38
xymum
摘要:VB StringsString Length Comparing StringsStrings in VB.NET are compared using the String Compare method. The return value can be -1 (if the...
阅读全文
posted @ 2015-06-17 15:16
xymum
摘要:RegionsVisual Studio IDE provides an easy way to collapse long tracts of program code into short sections for better viewing and easier scrolling.The ...
阅读全文
posted @ 2015-06-17 15:02
xymum
摘要:StructuresSometimes you may need to define your own data type in your VB code -- structures allow you to create composite values. Primitive variables ...
阅读全文
posted @ 2015-06-17 14:59
xymum
摘要:Inheritance - OverridesWhen a base class defines only the names of its methods or properties with the MustInherit modifier, the derived classes must p...
阅读全文
posted @ 2015-06-17 14:57
xymum
摘要:VB.NET supports collections such as List and Dictionary, which are useful constructs when building applications that need to access a set of related i...
阅读全文
posted @ 2015-06-17 14:54
xymum
摘要:VB ProceduresA VB.NET procedure (aka sub for subroutine) is defined using the Sub / End Sub keywords. The procedure is invoked by using its name as a ...
阅读全文
posted @ 2015-06-17 00:37
xymum
摘要:VB FunctionsA VB.NET function is defined using the Function/ End Function keywords. The function is invoked by using it. As with subs the function nam...
阅读全文
posted @ 2015-06-17 00:13
xymum
摘要:VB ClassesClasses are defined in VB.NET using a separate VB code file. The code file name is the same as the class name.In VB.NET the class attributes...
阅读全文
posted @ 2015-06-17 00:07
xymum
摘要:VB ArraysArraysArray variables are defined in Visual Basic using the same notation as with simple variables but with parenthesis after the variable na...
阅读全文
posted @ 2015-06-17 00:05
xymum
摘要:An operator is a code element that performs an operation on one or more code elements that hold values. The value elements include variables, constant...
阅读全文
posted @ 2015-06-17 00:04
xymum
摘要:ProcedureScope VariablesThese are variables declared within a procedure. Other procedures may not interact with them, either to read their value or ch...
阅读全文
posted @ 2015-06-17 00:03
xymum
摘要:Variable ScopeThe scope of a declared element determines where in a program the variable is visible to the code. This can refer to the namespace of th...
阅读全文
posted @ 2015-06-17 00:02
xymum
摘要:The Date and DateTime data types are fundamentally the same thing. They share the same properties and methods. A Dateis a Visual Basic data type while...
阅读全文
posted @ 2015-06-17 00:01
xymum
摘要:Data types in VB.NET and how variables are declared have changedsince its predecessor,version 6. VB.NET now supportsclass inheritance and can interope...
阅读全文
posted @ 2015-06-17 00:00
xymum
摘要:C#和VB.net的语法对比 最后更新 ( 2005-03-02 19:10 )VB.NET'Single line onlyRem Single line onlyC#// Single line/* Multipleline *//// XML comments on single line...
阅读全文
posted @ 2015-06-16 23:21
xymum
浙公网安备 33010602011771号