Modules (Visual Basic)
Visual Basic provides several modules that enable you to simplify common tasks in your code, including manipulating strings, performing mathematical calculations, getting system information, performing file and directory operations, and so on. The following table lists the modules provided by Visual Basic.
Module | Description |
---|---|
Constants | Contains miscellaneous constants. These constants can be used anywhere in your code. |
ControlChars | Contains constant control characters for printing and displaying text. |
Conversion | Contains members that convert decimal numbers to other bases, numbers to strings, strings to numbers, and one data type to another. |
DateAndTime | Contains members that get the current date or time, perform date calculations, return a date or time, set the date or time, or time the duration of a process. |
ErrObject | Contains information about run-time errors and methods to raise or clear an error. |
FileSystem | Contains members that perform file, directory or folder, and system operations. |
Financial | Contains procedures that are used to perform financial calculations. |
Globals | Contains information about the current scripting engine version. |
Information | Contains the members that return, test for, or verify information such as array size, type names, and so on. |
Interaction | Contains members interact with objects, applications, and systems. |
Strings | Contains members that perform string operations such as reformatting strings, searching a string, getting the length of a string, and so on. |
VBMath | Contains members perform mathematical operations. |
See also
Cộng tác với chúng tôi trên GitHub
Bạn có thể tìm thấy nguồn cho nội dung này trên GitHub, nơi bạn cũng có thể tạo và xem lại các vấn đề và yêu cầu kéo. Để biết thêm thông tin, hãy xem hướng dẫn dành cho người đóng góp của chúng tôi.
Phản hồi
https://aka.ms/ContentUserFeedback.
Sắp ra mắt: Trong năm 2024, chúng tôi sẽ dần gỡ bỏ Sự cố với GitHub dưới dạng cơ chế phản hồi cho nội dung và thay thế bằng hệ thống phản hồi mới. Để biết thêm thông tin, hãy xem:Gửi và xem ý kiến phản hồi dành cho