Forum Discussion

murugans1011's avatar
murugans1011
Regular Contributor
12 years ago
Solved

Invalid argument count exception

in my script i used 'waitvbobject' method to wait for an particular vbobject 



  •  if not Sys.Process("Process").WaitVBObject("Object").Exists then


when i try to run the script i m gettig exception  that "Invalid timeout value" so i replaced the line with     


  •  if not Sys.Process("Process").WaitVBObject("Object",3000).Exists then    'to wait  vbobject for 3 seconds



and now i m getting "invalid argument count exception".  is some wrong in my script? In above both cases the tested object is really exists.

 



 



  • Hi Murugan,


     


    It looks like FrmPurchaseOrder is the name of the mapped object. Thus, you need to use the WaitNamedChild method instead of the WaitVBObject method.


     

2 Replies


  • Hi Murugan,


     


    It looks like FrmPurchaseOrder is the name of the mapped object. Thus, you need to use the WaitNamedChild method instead of the WaitVBObject method.


     

  • murugans1011's avatar
    murugans1011
    Regular Contributor
    Hi



    frmPurchaseOrder is the form name and its not an mapped object. i havent used namemapping feature.