Is there a way to loop over each line in the current selection?
e.g.
for each line in selection
// do something to this line if it matches criteria
end for
I see the selection property in the help but it is documented as read only.
-Michael
Welcome to the IDM Forum. This forum is meant as a user-to-user support mechanism where users can share knowledge and tips for all IDM software.
Since these forums are user-to-user based, IDM does not regularly read or reply to the posts in this forum. For problem reports, suggestions, or feature requests, you must email us directly. Our trained technical support staff answers most inquiries within 30 minutes.
UltraEdit.insertMode();
UltraEdit.hexOff;
UltraEdit.ueReOn();
UltraEdit.columnModeOff();
var CRLF = "\r\n"; /* LineFeed character */
var myLines = UltraEdit.activeDocument.selection;
lines = myLines.split( CRLF );
for ( i in lines ) {
//check any condition you want. here just true
if ( true ) {
lines[i] = "" + i + " " + lines[i];
}
}
for ( i in lines ) {
UltraEdit.activeDocument.write(lines[i]+CRLF);
}

