Microsoft WSH and VBScript Programming for the Absolute Beginner Part 39

Microsoft WSH and VBScript Programming for the Absolute Beginner by Jerry Lee Ford Part 39. 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,. | 360 Microsoft WSH and VBScript Programming for the Absolute Beginner Second Edition Function ProcessFirstHero Set objFirstHero New SuperHero Instantiate a new SuperHero object Captain Adventure Assign value to Name property Laser Vision Assign value to Power property Dog Whistle Assign value to Weakness property Bruce Tracy Assign value to Identity property Execute the SuperHero object s method End Function Function ProcessSecondHero Set objSecondHero New SuperHero Captain Marvelous Assign value to Name property Lightning Speed Assign value to Power property Blue Jello Assign value to Weakness property Rob Denton Assign value to Identity property Execute the SuperHero object s method End Function Class SuperHero Private strName strPower strWeakness strIdentity Define variables used by this class Public Property Let Name strIdentity Define the Name property strName strIdentity End property Chapter 11 Working with Built-In VBScript Objects Public Property Let Power strSuperPower Define the Power property strPower strSuperPower End property Public Property Let Weakness strHurtBy Define the Weakness property strWeakness strHurtBy End property Public Property Let Identity strSecretIdentity Define the Identity strldentity strSecretldentity property End property Function Displayidentity This function defines the SuperHero object s DisplayIdentity method MsgBox strName vbCrLf vbCrLf _ Hero Power vbTab strPower vbCrLf _ Hero Weakness vbTab strWeakness vbCrLf _ Hero Identity vbTab stridentity End Function Private Sub Class_Initialize This event automatically executes when the SuperHero object is instantiated MsgBox In a blast of smoke and lightning another new super _ hero is born End Sub End Class As the script runs pop-up dialogs will be displayed as .

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.