Microsoft WSH and VBScript Programming for the Absolute Beginner Part 10

Microsoft WSH and VBScript Programming for the Absolute Beginner by Jerry Lee Ford Part 10. If you are new to programming with Microsoft WSH and VBScript and are looking for a solid introduction, this is the book for you. Developed by computer science professors, books in the for the absolute beginner series teach the principles of programming through simple game creation. You will acquire the skills that you need for more practical WSH and VBScript programming applications and will learn how these skills can be put to use in real-world scenarios. Best of all, by the time you finish this book,. | Microsoft WSH and VBScript Programming for the Absolute Beginner Second Edition Unfortunately the statement s syntax requirements have not been followed. The MsgBox function requires that all text messages be enclosed within a pair of quotation marks. If you look closely you will see that the closing quotation mark is omitted. Figure shows the error produced by this statement at run-time. Figure The error message caused by an unmatched quotation mark in a MsgBox statement. Reserved Characters Like any programming language VBScript has a collection of reserved words. Reserved words are words that you cannot use within your scripts because VBScript also assigns a special meaning to them. Some of these words are reserved because they are part of the language itself and others are reserved for future use. Table lists VBScript s reserved words. The important thing to remember when it comes to VBScript reserved words is that you can only use them as intended that is you cannot use them as variables constants and procedure names . Adding Comments One of the easiest VBScript statements to understand is the comment statement. The comment statement gives you the ability to add to your VBScripts descriptive text that documents why you wrote the script the way you did. Documenting your scripts with comments makes them easier to support and helps others who may come after you to pick up where you left off. Comments do not have any affect on the execution of your scripts and you should use them liberally. Comments can be added to scripts using the VBScript Rem short for remark statement as follows Rem Use the VBScript MsgBox function to display a message MsgBox Thanks for playing Comments also can be created using the character Use the VBScript MsgBox function to display a message MsgBox Thanks for playing Chapter 3 VBScript Basics Table VBScript s Collection of Reserved Words And EndIf LSet RSet As Enum Me Select Boolean Eqv Mod Set ByRef Event New Shared Byte .

Không thể tạo bản xem trước, hãy bấm tải xuống
TÀI LIỆU MỚI ĐĂNG
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.