Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

Format String

Does anyone know how to change the format string of a number control at runtime.

ex:
numY.FormatString = "0.00 W"
to
numY.FormatString = "0.00 A"

thanks

Curt
0 Kudos
Message 1 of 3
(6,288 Views)
When you say "number control," you're talking about the CWNumEdit control? If so, the example code that you posted should work. Could you please post a small test project that demonstrates the problem that you're having? Thanks.

- Elton
0 Kudos
Message 2 of 3
(6,282 Views)
Hi Elton,

If figured it out

this works

numY.Value = 7.2
numY.FormatString = "0.00"" V"""

results in

7.20 V

thanks for the reply

Curt
0 Kudos
Message 3 of 3
(6,276 Views)