Forum Discussion
What do you mean "we are stopped, don't know how to proceed further." ? What's the issue?
Hi,
Thanks for the response.
Every routine mentioned above is created with VBScript and works without any issues.
And we are trying to convert these into Python.
In the VBScript routine of Runorder_Sheet, we converted them into Python and finely, it works.
That is, when converted the Runorder_Sheet routine into Python, we get all the parameters from excel,
and as mentioned in the condition, if Runorder_Sheet routine works without any issue, then it should go to Data_sheet routine and this Data_sheet routine also works well, when debugged this Data_sheet routine, we get all the parameters from excel but when it reaches to the Execute keyword line, we are getting an run time error (for run time error please refer below).
Actually, in the Data_sheet routine of VBScript, if condtion is true it then goes to Execute line and it takes all the parameters with it and then go to the MTE_Textbox_Two_level routine of Function Script unit, in this Script unit, we defined events like, clicking (Click method used) buttons, handling (Keys method used) textboxes all the required events are defiend in it.
Here the query is: In the VBScript, we use Execute keyword to collectively send all the required parameters but how we can use in Python? is there any keyword in Python to collectively send all the required parameters as we do in VBScript.
Tried with different options:
Run Time Error:
Option 1) Exec() (TC_Description_Datasheet) - NameError name 'Exec' is not defined
Option 2) Execute (TC_Description_Datasheet) - NameError 'Execute' is not defined
Option 3) Execute() (TC_Description_Datasheet) - NameError 'Execute' is not defined
but non worked and all ended with error, NameError run time error:
We understood, Python looks for a function named: Exec or Execute and it is not defined in the routine, that's why we got this run time error.
Kindly help how we can fix this issue.
I hope this give you the clear picture of our issue.
Please tell us, if it does not give you the clear picture.
Thanks.
Related Content
Recent Discussions
- 9 hours ago
- 7 days ago
- 10 days ago