tailieunhanh - sams teach Yourself windows Script Host in 21 Days phần 3

Điều này thường được sử dụng khi một đối tượng bộ sưu tập không hỗ trợ một tham chiếu tuyệt đối các mục bên trong nó: à ObjFiles (1) nameà này được sử dụng thường xuyên nhất với các đối tượng có chứa một bộ sưu tập của các hạng mục như các đối tượng hệ thống tập tin hoặc Outlook thư mục | Simpo PDF Merge and Split Unregistered Version - http The word file in this example is arbitrary and could be anything. This is often used when a collection object doesn t support an absolute reference to the items within it ObjFiles 1 .name This is used most often with objects that contain a collection of items such as the File System Object or an Outlook Folder Item Collection. You can exit the For Each loop at any time with the Exit For statement. Do Loop The Do Loop executes a statement repeatedly until a condition is true or while a condition is true. The While or Until condition can be set with the Do or Loop command but you normally see it used in conjunction with the Do command Do Until count 5 count count 1 Loop Status True Do While Status True count count 1 If count 10 Then Statue False End If Loop You can use this method if you are testing each value with a function and want to find the first value that meets a certain condition. While Wend This is similar to the Do Loop except the condition is not checked until the code gets to the Wend statement. If the condition is not met execution starts over from the While statement While count 10 count count 1 msgbox count Wend This method of looping is not very common. VBScript Functions There are a large number of functions provided by VBScript. They assist with conversions string manipulation formatting expressions date time functions mathematical functions and user input output. In this section you will look at examples of the more common functions that you are Simpo PD FMerge and Split Unregistered Version - http Conversions Probably the most commonly used conversion function is Chr which returns the character for a given ANSI character code. The ANSI code for printable characters starts at 33. An example of using the Chr function follows for i 65 to 75 strMsg strMsg i chr i vbLF Next strMsg Because VBScript stores expressions automatically in the most suitable .

TÀI LIỆU MỚI ĐĂNG
31    225    0    28-03-2024
34    198    1    28-03-2024
75    130    0    28-03-2024
24    99    0    28-03-2024
crossorigin="anonymous">
Đã 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.