Jump to content
Fórum Script Brasil
  • 0

Formatar Números



1 answer to this question

Recommended Posts

  • 0

olha um exemplo ae

vNum = 19
Select Case (Len(vNum))
    Case 1
        vNum = "000" & vNum
    Case 2
        vNum = "00" & vNum
    Case 3
        vNum = "0" & vNum
    Case Else
        vNum = vNum
End Select
Response.Write vNum

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Forum Statistics

    • Total Topics
    • Total Posts
  • Create New...