Ondřej Čada
2012-04-26 15:13:36 UTC
Hello again,
the client want me to change a pretty old and pretty big WO application so that both '.' and ',' work interchangeably for a decimal point on input, in all fields of all forms.
I know a number of ways to do that for a specific field, but before I dive into that, isn't there a way to say globally for an entire WO application: "Hey, whenever and wherever you are converting a string to a number, consider '.' and ',' equal"? That would help a lot.
I went through the NSNumberFormatter API, but found nothing :(
Thanks and all the best,
---
Ondra Čada
OCSoftware: ***@ocs.cz http://www.ocs.cz
private ***@ocs.cz http://www.ocs.cz/oc
the client want me to change a pretty old and pretty big WO application so that both '.' and ',' work interchangeably for a decimal point on input, in all fields of all forms.
I know a number of ways to do that for a specific field, but before I dive into that, isn't there a way to say globally for an entire WO application: "Hey, whenever and wherever you are converting a string to a number, consider '.' and ',' equal"? That would help a lot.
I went through the NSNumberFormatter API, but found nothing :(
Thanks and all the best,
---
Ondra Čada
OCSoftware: ***@ocs.cz http://www.ocs.cz
private ***@ocs.cz http://www.ocs.cz/oc