Dela via


Visual Basic Language Reference for Devices

Visual Basic language programming elements available for device developers are not the same when you target the .NET Compact Framework. The Visual Basic Reference notes those elements that are not supported for device application development. For more information, see Differences from Desktop in .NET Compact Framework Development.

Supported Elements

The following programming elements are supported:

  • All Visual Basic data types, directives, methods, objects, operators, and statements.

  • Attributes, Constants and Enumerations, Functions, Keywords, and Properties not listed in the following sections as not being supported.

Unsupported Elements

Certain Visual Basic language programming elements are not available when you target the .NET Compact Framework. The following paragraphs summarize the programming elements not supported for developing smart device applications:

Attributes

VBFixedStringAttribute Class

Constants and Enumerations

FileAttribute Enumeration, CallType Enumeration, VbStrConv Enumeration, and VariantType Enumeration.

Functions

AppActivate Function, Beep Function, CallByName Function, ChDir Function, ChDrive Function, CreateObject Function (Visual Basic), CurDir Function, DeleteSetting Function, Dir Function, Environ Function, EOF Function, FileAttr Function, FileClose Function, FileCopy Function, FileDateTime Function, FileGet Function, FileGetObject Function, FileLen Function, FileOpen Function, FilePut Function, FilePutObject Function, FileWidth Function, FreeFile Function, GetAllSettings Function, GetAttr Function, GetObject Function (Visual Basic), GetSetting Function, Input Function, InputString Function, Kill Function, LineInput Function, Loc Function, Lock, Unlock Functions, LOF Function, MkDir Function, Print, PrintLine Functions, Rename Function, Reset Function, RmDir Function, SaveSetting Function, Seek Function, SetAttr Function, Shell Function, SPC Function, StrConv Function, TAB Function, Lock, Unlock Functions, VarType Function (Visual Basic), Write, WriteLine Functions.

Keywords

Ansi, Auto, End (Visual Basic), and Unicode (Visual Basic) keywords

Properties

LastDllError Property (Err Object), ScriptEngine Property, ScriptEngineBuildVersion Property, ScriptEngineMajorVersion Property, and ScriptEngineMinorVersion Property properties.

Partially Supported Elements

You can use the following properties to get but not set date and time: Today Property, TimeOfDay Property, DateString Property, and TimeString Property.

See Also

Concepts

Differences from Desktop in .NET Compact Framework Development

Other Resources

Programming for Devices Using the .NET Compact Framework

Visual Basic Reference

Reference (Devices)