Name
Declare Statement
Synopsis
Syntax for subroutines: [accessmodifier
] Declare [Ansi|Unicode|Auto] Subname_
Lib "libname
" [Alias "aliasname
"] [([arglist
])] Syntax for functions: [accessmodifier
] Declare [Ansi|Unicode|Auto] Functionname _
Lib "libname
" [Alias "aliasname
"] [([arglist
])] [Astype
]
accessmodifier
optional; Keywordaccessmodifier
can be any one of the following:Public
,Private
,Protected
,Friend
, orProtected
Friend
. The following table describes the effects of the various access modifiers. Note that direct access refers to accessing the member without any qualification, as in:classvariable = 100
and class/object access refers to accessing the member through qualification, either with the class name or the name of an object of that class.
Direct access scope |
Class/objectaccess scope | |
|
Declaring class |
Declaring class |
|
All derived classes |
Declaring class |
|
Derived in-project classes |
Declaring project |
|
All derived classes |
Declaring project |
|
All derived classes |
All projects |
Ansi
optional; KeywordConverts all strings to ANSI values.
Unicode
optional; KeywordConverts all strings to Unicode values.
Auto
optional; KeywordConverts the strings according to .NET rules based on the name of the method (or the alias name, if specified). If no modifier is specified,
Auto
is the default.name
required; String literalAny valid procedure name. Note that DLL entry points are case sensitive. If the
aliasname
argument is used, ...
Get VB.NET Language Pocket Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.