Forum Discussion
Wow it's strange,
TestComplete return 'Null' value while it's reading alphanumeric data from csv.
Do one thing add data as a "String" in csv file. when data is in "String" format it will retun all the values correctly.
Function terer
Call DDT.CSVDriver("C:\Users\a55610\Desktop\test12.csv")
While Not DDT.CurrentDriver.EOF
log.Message(DDT.CurrentDriver.Value(0))
log.Message(aqConvert.VarToStr(DDT.CurrentDriver.Value(0)))
DDT.CurrentDriver.Next
Wend
DDT.CloseDriver(DDT.CurrentDriver.Name)
End Function
"81517690080211"
"9150080761"
"81517690080400"
"50083AB6691SYS"
"50083AB6781SYS"
If this data is auto generated the before adding into cvs convert it into string .
This may help you. :)
- joseph_michaud10 years agoModerator
The CSV text driver has determined that the column contains numbers. See this forum post and this manual page (Using CSV Files as Data Storages) for a possible workaround involving a Schema.ini file.
- haridi10 years agoOccasional Contributor
The Schema.ini file has resolved the issue thanks for the help.
Related Content
- 6 years ago
- 6 years ago
- 8 years ago
- 11 years ago
Recent Discussions
- 9 hours ago