salley
7 years agoFrequent Contributor
Solved
Help on looping through data array
Hello, I need to iterate through the data and use them in username and password fields. user name a then password 100 ,, and then b 200. can somebody please look at my code and help please. thanks ...
- 7 years ago
I guess you can do like below,
function CurDriverExample() { // Creates a driver DDT.ExcelDriver("C:\\MyFile.xls", "Sheet1"); var colSkipper = 0; // Iterates through records while (! DDT.CurrentDriver.EOF()) { //Gets a value from the storage and posts it to the log for(var c = colSkipper ; c < DDT.CurrentDriver.ColumnCount ; c++){ Log.Message(DDT.CurrentDriver.Value(c)); } colSkipper++;//to skip one col in each row DDT.CurrentDriver.Next(); } // Closes the driver DDT.CloseDriver(DDT.CurrentDriver.Name); }