Hello everybody!
The script below is supposed to do the following: read a line number and a tag number. Then it should print all tags in that specific line until the tag number is reached.
The loop is working correctly as well as the text selection in the document window. However, the output window only displays the first character of the selection, i.e. the "<".
My first attempt was using matchBrace() instead of findReplace. I also put startSelect() and endSelect() around the find command. The result stays the same.
What am I missing here?
TIA for your help!
Uli
The script below is supposed to do the following: read a line number and a tag number. Then it should print all tags in that specific line until the tag number is reached.
Code: Select all
var i_LineNum = UltraEdit.getValue("Goto line number?", 1);
var i_TagNum = UltraEdit.getValue("Goto tag number?", 1);
UltraEdit.ueReOn();
with (UltraEdit.activeDocument) {
gotoLine(i_LineNum);
for (i = 0; i < i_TagNum; i++) {
findReplace.regExp = true;
findReplace.find("<*>");
UltraEdit.outputWindow.write(selection);
}
findReplace.regExp = false;
}
My first attempt was using matchBrace() instead of findReplace. I also put startSelect() and endSelect() around the find command. The result stays the same.
What am I missing here?
TIA for your help!
Uli
Using UE 13.10 on WinXP Pro SP 2