Some people need to duplicate lines !

Some people need to duplicate lines !

Guest

    Feb 10, 2006#1

    Hello,

    On most of the subjects I have read, people are facing a problem of duplicated lines they don't need ...

    In my case, I wish to duplicate a line when I'm working in the editor : that would be useful when you've just been writing a line and then you have to write an other one which very similar - there's just a letter ot two which must change when you transfert some vars from a recordset to another one without a foreach, for example.
    Do you think this could be done with a CTRL+D for example by a macro ? and how could be done this macro ?

    Thank you for any help.
    ben

    11
    Basic UserBasic User
    11

      Feb 10, 2006#2

      Here is your macro code

      Code: Select all

      DupeLine
      
      I think the DupeLine command was added to UE's macro-language with Version 10, but I might be wrong.

      Alternatively you could just select the respective menu-item: Edit \ Duplicate Line

      206
      MasterMaster
      206

        Feb 10, 2006#3

        I've used this macro for years, assigned to a keystroke.


        Key HOME
        StartSelect
        Key END
        Copy
        EndSelect
        Key END
        "
        "
        Paste
        Key HOME
        Software For Metalworking
        http://closetolerancesoftware.com

        6,675585
        Grand MasterGrand Master
        6,675585

          Feb 10, 2006#4

          As DarkTurok already has written, no macro is needed to duplicate a line. Just use Duplicate Line from menu Edit. You can assign a hotkey for this function at Advanced - Configuration - Key Mapping - command EditDuplicateLine.
          Best regards from an UC/UE/UES for Windows user from Austria

          Guest
          Guest

            Feb 10, 2006#5

            I've found no Duplicate Line from menu Edit in my version of UE, so I've used the macro and it worked at first sight ...
            Thank you