Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. format

format

Scheduled Pinned Locked Moved Visual Basic
tutorialhelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    momooomooomomo
    wrote on last edited by
    #1

    good day again to everyone.. someone pls help, how to come up an output like this.. "B0001".. i know its just to simple to you guyz, but its hard for me to do... its like the system will generate a code like this example... "B0001" .... its not only B0001 but it will accumumate until B0010 if the system has 10 record.. thank you in advance...

    nothing is impossible.....

    C 1 Reply Last reply
    0
    • M momooomooomomo

      good day again to everyone.. someone pls help, how to come up an output like this.. "B0001".. i know its just to simple to you guyz, but its hard for me to do... its like the system will generate a code like this example... "B0001" .... its not only B0001 but it will accumumate until B0010 if the system has 10 record.. thank you in advance...

      nothing is impossible.....

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      If you're using VB.NET, you can use the string.Format method to format a number to have a fixed number of digits. And, of course, put the B in front of it.

      Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups