[Gambas-user] TableView.text conversion
Keith Clark
keithclark at ...2185...
Fri Mar 12 19:59:00 CET 2010
I have input a value into a TableView cell, and now I want to read it.
The problem is that I want to read it as a text string. The 'number' is
actually an ISBN code. It can sometimes be a string, as it can contain
an 'X' or a 10 digit number, but starting with a 0.
For example, 0123456789, 1234567891, and 012345678X are all valid values
for the cell.
So, when the cell value is say 0123456789 and I convert it with str$, I
get 123456789, the zero is dropped. Is there an easy way around this or
do I have to check the leading character each time for a '0'?
Thanks,
Keith
More information about the User
mailing list