DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I add a comma in between every three digits in a numeric value?

Hello,

I would like to have the following number format displayed on my 2D Axis system plot y-axis in my report, (100,000 or nnn,nnn). I have looked through the "Formating Numeric Values in Text" help section but I can't seem to figure out how to do this. Any suggestions would be approciated.

 

Thanks

0 Kudos
Message 1 of 2
(4,608 Views)

Hi wils01,

 

Try this:

 

StrVar = 1000000
StrVar = FormatNumber(StrVar, 0, FALSE, FALSE, TRUE)
MsgBox StrVar

 

Brad Turpin

DIAdem Product Support Engineer

National Instruments

0 Kudos
Message 2 of 2
(4,570 Views)