Recording an checkpoint Integer variable to excel as a string?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2010
04:43 AM
03-12-2010
04:43 AM
Recording an checkpoint Integer variable to excel as a string?
The number in question is 0024248..
Currently using
Records in Excel as 24248.
Jack
Currently using
dtaSheet.Cells(tcRw,"A") = aqConvert.VarToStr(page.PolNum.innerText)
Records in Excel as 24248.
Jack
1 REPLY 1
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2010
03:43 AM
03-16-2010
03:43 AM
Hi Jack,
This behavior is normal (by default). To force MS Excel not to truncate zeros, you need to set the cell format to Text by using its NumberFormat propety (cell.NumberFormat = "Text").
This behavior is normal (by default). To force MS Excel not to truncate zeros, you need to set the cell format to Text by using its NumberFormat propety (cell.NumberFormat = "Text").
------
Yuri
TestComplete Customer Care Engineer
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Yuri
TestComplete Customer Care Engineer
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
