How to write a number in text 

How to write a number in text 

  

Hi! I am new to the Ousystems platform and I came to ask you're help.


I want the user to write a number type, between 1 and 10, for e.g. "1" and the page will return "one".

Does anyone knows how to help me? 



Thank you so much for the help!!

Hi,

just a switch-statement, if it's easy.

otherwise implement this

http://www.blackbeltcoder.com/Articles/strings/converting-numbers-to-words


Andreia Gaspar wrote:

Hi! I am new to the Ousystems platform and I came to ask you're help.


I want the user to write a number type, between 1 and 10, for e.g. "1" and the page will return "one".

Does anyone knows how to help me? 



Thank you so much for the help!!

here is the .oml using switch widget


Hi Andreia Gaspar, You can use Number to text Extension to convert number to text. 

http://www.outsystems.com/forge/component/1217/number-to-word/




Thanks

Rajendra Singh