Writing increasing numbers to the code?

Writing increasing numbers to the code?

1581
Power UserPower User
1581

    Jan 18, 2006#1

    Hello

    I use UE 10.10c and I'm looking for a function? / macro? / subroutine? for writing increasing numbers to the lines in my file (maybe you remember the old BASIC line numbers?).

    Example:
    I have the code:

    Code: Select all

              [Command a]job 1
              [Command b]job 2
              [Command c]job 3
              [Command d]job 4
              [Command e]job 5
    I want to add numbers to the lines: not only displayed - really written in the file; and not the line-numbers, but numbers of my choice

    The command should be:

    Click to the beginning of the choosen code -> I click to first column of [Command a]

    click to the end -> I click to first column of [Command d]

    type in the starting value -> I type "512"

    type in the step of counting -> I type "2"

    The program will start ->


    The result should be:

    Code: Select all

    512       [Command a]job 1
    514       [Command b]job 2
    516       [Command c]job 3
    518       [Command d]job 4
              [Command e]job 5
    Are there any ideas for a solution?

    Best regards

    Peter

    11
    Basic UserBasic User
    11

      Jan 19, 2006#2

      I'm pretty sure this is already in 10.10c

      1) select Column Mode (Alt-C or Column / Column Mode )
      2) mark the lines you want to insert your values
      3) Select Column / Insert Number
      4) enter initial and increment value
      5) hit OK

      1581
      Power UserPower User
      1581

        Jan 19, 2006#3

        :oops:

        Yes, you are right - one of many features which I have overlooked until today.

        Thanks

        Peter