Hi Forum,
I am interesting in seeing the commas in a number when it is displayed in a dialog or message box. Is there a straightforward approach e.g., a format function?
Here is a snippet of my code:
Random>5000000,r
Let num=100000+r
MessageModal>num
The variable 'num' is displayed without any commas.
Thanks
Including Commas in variable Number
Moderators: Dorian (MJT support), JRL
Look into the vbscript function FormatNumber
Code: Select all
VBSTART
VBEND
Random>5000000,r
Let num=100000+r
VBEval>FormatNumber(%num%),res
MessageModal>res