Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Infinite and CNiNumEdit control

Hi everyone.
I need to use a CNiNumEdit control to assign or to show a double variable.
The variable can be any number, also infinite.
The control works well in showing any number but it is impossible to show the +infinite or -infinite value.
Doing so the control throws an exception.
I can use the TRY, CATCH_ALL macro but doing so it is impossible to set the text "infinite", or something similar, in the control.
How can I assign the infinite value to the CNiNumEdit control ?
 
Thanks in advance for your answer.
0 Kudos
Message 1 of 3
(4,007 Views)
Look at this KB online to see if it helps
 
 
AlessioD
National Instruments
 
0 Kudos
Message 2 of 3
(4,001 Views)

Ok thanks.

If it were possible to directly assign an infinite value to the control it would be better, however this is a good workaround.

If you know a direct way to assign +inf or -inf to the control let me know.

Thank you

 

0 Kudos
Message 3 of 3
(3,985 Views)