| || |
How to open two files simultaneously
How can I open two exlec file simultaneously, one in read mode and the other in write mode.The thing I want to do is extract some values from the excel file(read mode) and put into the application text field.The application will generate a unique id after winrunner insert s the values from the excel file(read only).Now I have to extract that unique id and save in the other excel file(write mode).How to do this.Any suggestion is welcome.
Re: How to open two files simultaneously
I'm not sure how to answer you - it's just a matter of having two ddt_open's, defined correctly, with different variable names for the 2 files.
Simplifying and omitting return code handling:
</font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">table1 = "c:\\temp\file1.xls";
table2 = "c:\\temp\file2.xls";
ddt_open(table2, DDT_MODE_READWRITE);</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">