cancel
Showing results for 
Search instead for 
Did you mean: 

Method arguments must be enclosed in parentheses.

AsitabhaDeb
Level 6
Hello,

I have completed the SAP scripting but when I am trying to run the code in Object level above error is showing. Did I miss anything.
I have attached the screenshots of my code.
Page: Click on Spreadsheet
Stage: Code1
Type: Error
Action: Validate
Description: Compiler error at line 12: Method arguments must be enclosed in parentheses.
Repairable: No
Please help ASAP. I need to submit it to leadership team.

BR/Deb


------------------------------
Asitabha Deb
------------------------------
1 BEST ANSWER

Helpful Answers

MadhurChopra
Staff
Staff
Hey Asitabha,

A quick glance makes me believe the errors you are seeing are a result of the arguments you are passing in rows 12 & 13. I'll suggest placing them in parenthesis and trying again.

I hope this helps.

Regards.

------------------------------
Madhur Chopra
Sr. Product Consultant
Blue Prism - Professional Services
America/Los_Angeles
------------------------------

View answer in original post

2 REPLIES 2

NicholasZejdlik
Level 9
Try changing line 12 to this:
session.findById("wnd[0]/usr/cntrlRESULT_LIST/shellcont/shell").pressToolbarContextButton("&MB_EXPORT")​
I think it doesn't like that you don't have the parameters enclosed in parenthesis. The old VBA / VBS / VB6 style doesn't require them, but vb.net does.

------------------------------
Nicholas Zejdlik
RPA Developer
------------------------------

MadhurChopra
Staff
Staff
Hey Asitabha,

A quick glance makes me believe the errors you are seeing are a result of the arguments you are passing in rows 12 & 13. I'll suggest placing them in parenthesis and trying again.

I hope this helps.

Regards.

------------------------------
Madhur Chopra
Sr. Product Consultant
Blue Prism - Professional Services
America/Los_Angeles
------------------------------