VBScript For Loop Example - VBScript For Each break-VBScript-For Loop-VBScript Basics-Using VBScript

Поделиться
HTML-код
  • Опубликовано: 18 ноя 2024

Комментарии • 14

  • @fairozemm5505
    @fairozemm5505 9 лет назад

    Thanks a lot, awesome explanation!!!

    • @QA1
      @QA1  9 лет назад

      Fairoze MM Many thanks for your like and support.

  • @karthickrajssm
    @karthickrajssm 8 лет назад

    Hi Thanks for the explanation can you please explain me more about the arguments how and createobjects how it is referred.

    • @QA1
      @QA1  8 лет назад

      +Karthick Raj Thank you for your question. CreateObject has one argument, which is the class name of the application that we want to invoke. We need to know this class name in advance. For example,
      Set browser = CreateObject("InternetExplorer.Application")
      or
      Set objExcelApp = CreateObject("Excel.Application")
      You can see my other examples in my VBScript tutorial 6 at ruclips.net/video/cIFONuSKH1Q/видео.html

    • @karthickrajssm
      @karthickrajssm 8 лет назад

      +Software and Testing Training thanks a lot

  • @EifertJoao13
    @EifertJoao13 9 лет назад

    Dear Inder,
    I changed the name of the computer as you commented in the begining of the script (line 7), and I changed the path+file (line 10), but executing this script, I had this error:
    Line: 14
    Charct.: 3
    Error: Invalid use of Null: 'Round'
    Code: 800A005E
    Could you help me?

    • @QA1
      @QA1  9 лет назад

      João Vitor Eifert Dear João, I see that your question is regarding the DiskSizes.vbs example script. The error seems to indicate that objDrive object is null on line 14. The objDrive object comes from the objHardDisks collection. Therefore, my suggestion is to verify if the query on line 8 is correct for your specific computer. Other things seem okay. Thank you.

  • @pittuvenkatreddy8599
    @pittuvenkatreddy8599 Год назад

    Hi is there any way to skip one iteration and then continue in VBScript

    • @QA1
      @QA1  Год назад

      Hi, you can use a label or put the code you want to execute the remaining times within an If statement (view ruclips.net/video/NiIqELIZGNg/видео.html) or you can break the For Loop by using Exit For statement e.g. If i = 3 Then Exit For

  • @sariam62
    @sariam62 3 года назад

    How to loop a temp table in vbscript

    • @QA1
      @QA1  3 года назад

      In order to learn how to loop through database tables, please view my VBScript Tutorial at ruclips.net/video/knqPG5KDn7E/видео.html

  • @Legendkiller99
    @Legendkiller99 9 лет назад

    Dim m,n as integer m=20 , n=6 for n=6 to 20 step 2 m=m+3 next what will be the value of the variables (m) and (n) after the execution of the following code? Can you tell me please????

    • @QA1
      @QA1  9 лет назад

      Karkar Momo The easiest way to find out the values is to actually run the VBScript. The values should be m=44 (it starts with 20 and is incremented 8 times by 3) and n= 22 because it increments by 2 after its final value in the for loop. This can be found by including msgbox statements after the code. Thank you.

    • @Legendkiller99
      @Legendkiller99 9 лет назад

      Software and Testing Training thank you very much