I have created script to populate an array based on the the activeDocument.selection. What I would like to do is include the previous line as part of the array as well. I'm not familiar of how to get the offset or previous line to the selection.
Example:
What I would like to achieve:
Regards,
John
Code: Select all
Line# Text
1 This is the first line
2 This is the second line //This is the activeDocument.selection
Code: Select all
myArray[x]= UltraEdit.activeDocument.selection //This line works
Result = This is the second line
Code: Select all
myArray[x]= UltraEdit.activeDocument.selection + "," + UltraEdit.activeDocument.selection.previousline
Result = This is the second line,This is the first line
John