+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
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?
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.
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
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????
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.
Thanks a lot, awesome explanation!!!
Fairoze MM Many thanks for your like and support.
Hi Thanks for the explanation can you please explain me more about the arguments how and createobjects how it is referred.
+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
+Software and Testing Training thanks a lot
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?
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.
Hi is there any way to skip one iteration and then continue in VBScript
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
How to loop a temp table in vbscript
In order to learn how to loop through database tables, please view my VBScript Tutorial at ruclips.net/video/knqPG5KDn7E/видео.html
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????
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.
Software and Testing Training thank you very much