10-20-2008, 09:56 AM
Hi,
Using the following option I was successfully exported sheet to C: drive
datatable.Exportsheet "C://sheet1",1
but when I used parentheses similar to below
datatable.Exportsheet ("C://sheet1",1)
QTP throwing syntax error saying "Cannot use parentheses when calling a Sub"
As I don't have much programming knowledge I always get confused with when and when not to use parentheses...
Can any one give tips on how to know about this?
and also what does it mean by the error I mentioned above.
Thanks,
Akhila
Using the following option I was successfully exported sheet to C: drive
datatable.Exportsheet "C://sheet1",1
but when I used parentheses similar to below
datatable.Exportsheet ("C://sheet1",1)
QTP throwing syntax error saying "Cannot use parentheses when calling a Sub"
As I don't have much programming knowledge I always get confused with when and when not to use parentheses...
Can any one give tips on how to know about this?
and also what does it mean by the error I mentioned above.
Thanks,
Akhila