Validation / Conversion (OpenInsight Specific)
At 06 MAR 2001 11:29:47AM Luis B. wrote:
Somebody could say as I make the following thing:
When I type in a control (EditLine or EditTable) a numeric value (example: 1234.1234567) and I make the validation and conversion with the mask "MD2", it is kept in the register a value with to 2 decimal digits (example: 123412) in internal format, and therefore I lose the rest of the decimal digits (example: 34567), of the original value…
There is some form of saving the original value (example: 1234.1234567), and alone for visualization effects (Output Format) to use some mask (example "MD2")????
Please, any help is more than grateful.
___
Luis B.
At 06 MAR 2001 11:45AM [url=http://www.sprezzatura.com" onMouseOver=window.status=Click here to visit our web site?';return(true)]The Sprezzatura Group[/url] wrote:
Take the value 1.2345678 and
Iconv it MD7 - the result is 12345678
now take the result and
Oconv it MD7 - the result is 1.2345678
BUT
take the result and
Oconv it MD27 - the result is 1.23
This should work for you.
World Leaders in all things RevSoft
At 07 MAR 2001 02:23PM Luis Ballinas wrote:
Thank you Sprezzatura Group.
The above-mentioned has already made it. But the problem is in the moment of the write-event. For example: In a EditTable, after the OCONV of my validacion/convercion function, in some of their columns already alone numeric quantities appear with the mask "MD2X", and after the " WRITE ", alone save me the quantity that this in control stuffed with zeros (depend of the mask of the ICONV function), and not the originally typed value (with their respective decimal digits).
In short: I need to type quantities like "1.23456789", to show in the form or window "1.23" but to save in the register (in the table) "123456789"
Good, I wait to have given myself to understand, and again thank you for any tip, comment or helps.
Luis B.