Forum Discussion
tristaanogre
8 years agoEsteemed Contributor
Change your code to the following:
DDT.ExcelDriver("c:\\femalePatients.xlsx", "Female_E", true)
and see if that works.
- royd8 years agoRegular Contributor
Excellent! I have crossed that hurdle. But now it says "New_Patients is not defined". Do I need to export New_Patients and call in this routine?
Thanks.
Dave
- tristaanogre8 years agoEsteemed Contributor
Whereever the object/unit New_Patients is referenced from, your code needs to get access to it. So, if it's a different unit of code, you should do the module.exports or //USEUNIT to be able to reference that code in the unit where you're calling it from. See https://support.smartbear.com/testcomplete/docs/scripting/specifics/javascript.html#referencing-other-script-units
- royd8 years agoRegular Contributor
Got it. Thank you! I was wondering about that, thanks for clarifying.
Dave
Related Content
- 12 years ago
- 8 years ago
- 2 years ago
Recent Discussions
- 3 days ago
- 3 days ago
- 6 days ago