• Log in or sign up for an account here: https://www.sythe.org/login

1000 to 1,000?! Please post if you know how!

  • Thread starter Thread starter Fludger
  • Start date Start date
F

Fludger

Guest
Hello, I'm new to Sythe and you seem like a nice community, so I was wondering
if you can use 1,000 instead of 1000 in a Msgbox? If so, how?
Thanks
 
You can use any usual characters in a message box if you tell it to output a string rather than an integer.

What you probably have
Code:
Msgbox 1000

What you would want
Code:
Msgbox "1,000"

If this isn't what you want then try to be more specific and explain better.
 
Sorry, my bad. I was trying to use it like this

Code:
Private Sub Command1_Click()
MsgBox "The chance is 1 in " & Text1.Text ^ Text2.Text, vbOKOnly, "Chance"
End Sub
 
Two Factor Authentication User
You just need to use the Format method like below:
Code:
Format(X, "#,0") 'replace X with the number to be formated
So it should look like this:
Code:
MsgBox "The chance is 1 in " & Format(Val(Text1.Text) ^ Val(Text2.Text), "#,0"), vbOKOnly, "Chance"
 
Sweet! It works like a charm! It doesn't even show E anymore! Thanks!
 
duelarena.gg
Back
Top