Integer.Parse is the new way of converting from Text to an Integer in the Xojo framework. One of the things it does NOT do is handle any number formatting.
For example, if you have “12,345” and use Parse it will give a result of 12. You will have to strip the formatting on your own. Less than ideal, IMO.
This might be well know, but it’s worth putting it out there so someone else doesn’t bang their heads against the wall for an hour like I did. FWIW, it was reported in June 2015 <https://xojo.com/issue/39645>.
There is where something like NSNumberFormatter (along with others likeNSDateFormatter etc) would be useful
And we have discussed such things for the new framework
They not only handle output (aka Format) but also input parsing Instances of NSNumberFormatter format the textual representation of cells that contain NSNumber objects and convert textual representations of numeric values into NSNumber objects. The representation encompasses integers, floats, and doubles; floats and doubles can be formatted to a specified decimal position. NSNumberFormatter objects can also impose ranges on the numeric values cells can accept.