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. C#
  4. Transaction Number

Transaction Number

Scheduled Pinned Locked Moved C#
helptutorial
3 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.
  • K Offline
    K Offline
    knight_sky
    wrote on last edited by
    #1

    hi... i have a problem regarding my transaction number... i make it a randomized one, but what i really want is to make it a... example: my transaction number now is 000121 then after that transaction it will automatically turn into 000122... is that posible. could you teach me how... THANKS Chill out!!! :)

    J J 2 Replies Last reply
    0
    • K knight_sky

      hi... i have a problem regarding my transaction number... i make it a randomized one, but what i really want is to make it a... example: my transaction number now is 000121 then after that transaction it will automatically turn into 000122... is that posible. could you teach me how... THANKS Chill out!!! :)

      J Offline
      J Offline
      Judah Gabriel Himango
      wrote on last edited by
      #2

      What kind of transaction are you talking about? SQL transactions? System.Transactions? Client/server transactions?

      1 Reply Last reply
      0
      • K knight_sky

        hi... i have a problem regarding my transaction number... i make it a randomized one, but what i really want is to make it a... example: my transaction number now is 000121 then after that transaction it will automatically turn into 000122... is that posible. could you teach me how... THANKS Chill out!!! :)

        J Offline
        J Offline
        JacquesDP
        wrote on last edited by
        #3

        So what you want to do is to auto increment the transactions number, with the transaction number being a variable within your code. If I understand correctly. Do you only use the app or do you use sql with your app? I would say that if its just within your app the best would be int trans = 0; Number++; or if you use sql you can set that each new entry must be unique and auto increment where you can specify the starting point and the amount with wich to increment.

        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