PLEASE SEE ATTACHMENT. I THINK THAT'S THE PROBLEM. PLEASE CONFIRM ONCE PROBLEM SOLVED SO THERE USER CAN USER CAN UNDERSTAND EASILY.
Above code is working and tested. please see
Code:
DataTable.Import("C:\nis.xls")
For i =1 to DataTable.GetSheetCount
DataTable.SetCurrentRow i
Print DataTable("Username",dtGlobalSheet)
Print DataTable("password",dtGlobalSheet)
Print"id"& DataTable.Value("Username")
Print DataTable.Value("password")
Next
Above code is working and tested. please see