From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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,351 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,313 Views)