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. Plz help me

Plz help me

Scheduled Pinned Locked Moved Visual Basic
helptutorial
4 Posts 3 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.
  • P Offline
    P Offline
    poonams
    wrote on last edited by
    #1

    hi all i have to autogenerate invoice no which should be alphnumeric. Had any one idea about how to autogenerate IDs

    poonam

    C 1 Reply Last reply
    0
    • P poonams

      hi all i have to autogenerate invoice no which should be alphnumeric. Had any one idea about how to autogenerate IDs

      poonam

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      Where is this invoice number being generated from and what are the constraints? I presume it will be generated in the database, in which case you can use an identity column. If that is not an acceptable solution then you need to give more information.


      Upcoming FREE developer events: * Developer! Developer! Developer! 6 * Developer Day Scotland My website

      D 1 Reply Last reply
      0
      • C Colin Angus Mackay

        Where is this invoice number being generated from and what are the constraints? I presume it will be generated in the database, in which case you can use an identity column. If that is not an acceptable solution then you need to give more information.


        Upcoming FREE developer events: * Developer! Developer! Developer! 6 * Developer Day Scotland My website

        D Offline
        D Offline
        deathbat
        wrote on last edited by
        #3

        If this does not work why not just use a varible as a counter if you creat it as a user varible it will hold even when the program shuts down. that way if you need to you can reset it programicaly the only problem i could see with this is if you jumped the app to a different system but using the same db

        C 1 Reply Last reply
        0
        • D deathbat

          If this does not work why not just use a varible as a counter if you creat it as a user varible it will hold even when the program shuts down. that way if you need to you can reset it programicaly the only problem i could see with this is if you jumped the app to a different system but using the same db

          C Offline
          C Offline
          Colin Angus Mackay
          wrote on last edited by
          #4

          deathbat wrote:

          If this does not work why not just use a varible as a counter if you creat it as a user varible it will hold even when the program shuts down

          What exactly is a "user variable" and how is it different to any other kind of variable? How does it hold on to the value when the program shuts down?


          Upcoming FREE developer events: * Developer! Developer! Developer! 6 * Developer Day Scotland My website

          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