Splitting based on content

Help with writing and playing macros

Re: Splitting based on content

Postby Mofi » Tue Nov 28, 2006 3:12 pm

You macro code looks fine.

Which version of UltraEdit/UEStudio do you use?

Since UE v12.20 and UES v6.10 the GotoBookMark and GotoBookMarkSelect commands have been modified, but with some bugs if not at least UE v12.20a+2 is used.

Also maybe better would be to use PreviousBookmarkSelect instead of GotoBookMarkSelect which I just have seen.

Are you sure that every date string is found only at start of a line and never anywhere in the middle or end of a line. If you are not sure, use the command UnixReOff at start of the command to select the UltraEdit style regex engine and modify Find "^c" to Find RegExp "%^c". Don't forget to add UnixReOn or PerlReOn at the end of the macro to switch back to your preferred regular expression engine, if it is not the UltraEdit engine.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4039
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: Splitting based on content

Postby mikekiwi » Tue Nov 28, 2006 3:46 pm

We're using version 10.00c over here; are your suggestions about the UnixReoff etc. then still valid?

I'll ask our ICT-depatment over here to consider upgrading to the 12.xx version, there seems to be a lot more options in the area of macros and find/replace which I'm missing at the moment...
User avatar
mikekiwi
Basic User
Basic User
 
Posts: 10
Joined: Sun Aug 20, 2006 11:00 pm

Re: Splitting based on content

Postby Mofi » Wed Nov 29, 2006 7:49 am

You can apply all my suggestion even with v10.00c. First you should use the free update to v10.10c. Send an email to IDM support with your registration data and ask for the install package for v10.10c (language? dictionaries?). IDM support will send it for free to you.

Code: Select all
v10.10c - Bug Fixes
          - FTP Current directory not always set correctly when switching
            accounts if not doing a browse
          - Project files sometimes does not sort the first file correctly
          - Loading projects from older releases occasionally crashes
          - Improvements to copy/paste between Unicode and non-Unicode
            applications
          - Screen sometimes not rendered correctly after selection on XP
          - Other minor issues

v10.10b - Bug Fixes
          - Some list boxes not shown correctly when docked horizontally
            (not vertically)
          - Syntax highlighting dialog not showing all languages in some cases
          - Output Window scroll width fixed for very long lines
          - Folder files not always shown in Project List
          - Opening project with open files in File Tree View would show
            project files in list
          - Print/print preview sometimes shows an extra character at end of
            file
          - Problem with cut/delete of large sections from files greater
            than 2GB
          - Revert to saved with UTF-8 BOM files would show the BOM characters
          - UltraCompare Lite fixes
          - Other minor issues
        - Added check for UltraCompare Professional and use it if installed
          instead of UltraCompare Lite
        - For usability for those that are visually impaired added text
          indicators in the General Configuration Tab to indicate items
          that were checked or not

v10.10a - Bug Fixes
          - UltraCompare Binary Mode on Win 9x/Me not showing results
          - Paste in HEX mode of data including nulls fails
          - Paste some non-English characters in some locales caused
            character conversions
          - Several issues with projects including directories
          - Find in Files always did a recursive search
          - Fix spell checker dialogs for non-English versions
          - Other minor issues
        - Added Font Setting for UltraCompare
        - Added INI settings allowing user to determine if the BOM should be
          written:
          - Write UTF-8 BOM = 1 - This setting causes the editor to write out
            the Byte Order Mark (BOM) header in a file when it is saved.  If
            this is not set, it will not write out the BOM unless the file
            contained it when it was loaded into the editor.  If so, the BOM
            will be written to the file irrespective of the setting.  The BOM
            is an industry standard indicating the contents of the file for
            various UNICODE formats.  This is set be default internally.
          - Write UTF-8 BOM NF = 1 - This setting causes the editor to write out
            the Byte Order Mark (BOM) header in a file when it is saved if the
            file is a new file created within UltraEdit.  If the Write UTF-8 BOM
            setting above is set, then the BOM will always be written and this is
            ignored.  Otherwise, the BOM will only be written out for new files
            if this is set.

V10.10  - Resizeable dialogs for FTP Open/Save As, ASCII Table and
           Find List lines containg string
        - Column Insert Number feature allows Hex or Decimal
        - Project Directories allow Recursive addition of files/folders
        - SFTP allows Public/Private Key encryption
        - Improved UTF-8 support with BOM detection
        - Max columns increased to allow up to 20,000
        - Word count enhanced with additional information
        - Alt+ Up/Down commands to switch documents according to File Tab order
        - Additional macro commands added for:
            - Conversion to/from EBCDIC
            - Next/Previous Document
        - Setting of code page and locale:
            - Locale used (optionally) for sort
            - Code page used for Unicode conversions
        - Increased UNDO buffer sizes
        - Double click empty spaces to select all contiguous space
        - Open of Unicode paths via Drag and Drop from Explorer
        - Sort optionally uses locale to sort
        - New file compare:
            - Improved interface
            - Better algorithms
            - Supports binary compare
            - Supports FTP files without saving locally
        - Double click document file tab to close file
        - Added INI setting to not automatically browse when changing FTP account
          (Default now not to browse)
        - Other minor changes
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4039
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Previous

Return to Macros