tailieunhanh - Microsoft WSH and VBScript Programming for the Absolute Beginner Part 18
Microsoft WSH and VBScript Programming for the Absolute Beginner by Jerry Lee Ford Part 18. 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 In the Real World A flowchart is a graphical depiction of the possible logical flow of a script or program. Programmers sometimes begin script development by first creating a flowchart. The flowchart serves as a visual tool for script development and provides a valuable documentation tool. Flowchart development can be a big help in the creation of complex scripts. Flowcharts help programmers formalize their thoughts before script development begins. Sometimes an automation task requires the development of several scripts all of which must work together. Flowcharts provide a way of designing and documenting the logical flow between each script. Flowcharts can also facilitate script development when multiple programmers are involved as they can be used to break down a task into discrete parts each of which can then be assigned to a different person to work on. You can expand the If statement by adding one or more Elself keywords each of which can test another alternative condition. For example look at the following VBScript statements If X 250 Then Go and buy that TV Buy a TV Guide while you are at it. And do not forget to say thank you. Elself X 200 Then Buy the VCR Elself X 100 Then Buy the Radio. Else OK. Maybe you had best just eat lunch. End If Nesting If Statements Another way to use If statements is to embed them within one another. This enables you to develop scripts that test for a condition and then further test other conditions based on the result of the previous test. To see what I mean look at the following example I have bolded the embedded If statement to make it easier to see X 250 If X 250 Then Chapter 5 Conditional Logic If Weekday date 1 Then It s Sunday. The TV store is closed on Sundays. Else Go and buy that TV vbCrLf _ Buy a TV Guide while you are at it. vbCrLf _ .
đang nạp các trang xem trước