count up alphanumerically

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Markus Schnitzer

    #1

    count up alphanumerically

    Hello,
    I must count up a alphanumericall y-number:

    A = "ABC12"
    A += 1
    then
    A =ABC13

    or "A34C" ="A34D"

    What can I do?

    Thanks

    Markus@Schnitze r-cp,


  • zacks@construction-imaging.com

    #2
    Re: count up alphanumericall y

    On Jul 12, 9:18 am, "Markus Schnitzer" <schnit...@schn itzer-dreher.de>
    wrote:
    Hello,
    I must count up a alphanumericall y-number:
    >
    A = "ABC12"
    A += 1
    then
    A =ABC13
    >
    or "A34C" ="A34D"
    >
    What can I do?
    Once you realize that every character, numeric or alphabetic, has a
    numerical representation, the solution to your problem is simple.

    Comment

    • jeff

      #3
      Re: count up alphanumericall y


      what will ZZZ + 1 give you ...

      or A9 + 1 give you

      how do you wrap and expand these alpha-numerical "numbers".

      ie.

      9 + 1 = 10

      99 + 1 = 100

      Z + 1 = ??

      once you define the rules, you should be able to easily write a class to do
      this. Use the String and check the right most character...

      Jeff.


      "Markus Schnitzer" <schnitzer@schn itzer-dreher.dewrote in message
      news:OpCcldIxHH A.4352@TK2MSFTN GP05.phx.gbl...
      Hello,
      I must count up a alphanumericall y-number:
      >
      A = "ABC12"
      A += 1
      then
      A =ABC13
      >
      or "A34C" ="A34D"
      >
      What can I do?
      >
      Thanks
      >
      Markus@Schnitze r-cp,
      >

      Comment

      Working...