Posts: 1,769
Threads: 410
Joined: Feb 2003
in SQL server, when you're building a sql statement, you are able to highlight just a small section and hit run and it will ignore the entire sql code in the page except for what is highlighted. Is that possible in QM? it would really be handy!
Posts: 12,141
Threads: 143
Joined: Dec 2002
Can create macro that encloses nonselected parts of QM editor code into #if 0 ... #endif and runs the macro. But then will need to undo.
Other macro could undo it, even if edited. Add some special string to #if 0 and #endif to find what to undo.
#if 0 ;;undo
don't run this
don't run this
don't run this
#endif ;;undo
run this selected text
run this selected text
run this selected text
#if 0 ;;undo
don't run this
don't run this
don't run this
#endif ;;undo
-----------------------
Or insert goto.
goto undo1
don't run this
don't run this
don't run this
;undo1
run this selected text
run this selected text
run this selected text
goto undo2
don't run this
don't run this
don't run this
;undo2
Posts: 1,769
Threads: 410
Joined: Feb 2003
Ooooo, that gave me an idea.
now whatever I've selected gets executed in a new mac and then the mac is deleted.
Function
Macro2
Trigger
- //FF_Keyboard2
_s.getsel
_s.from(_s "[]" "")
newitem("debugtemp" _s "" "" "" 1)
mac "debugtemp"
newitem("debugtemp" "" "" "" "" 32)
Posts: 12,141
Threads: 143
Joined: Dec 2002
In any case, possible various problems. For example, variables that are not declared or not initialized.
Posts: 1,769
Threads: 410
Joined: Feb 2003
yeah, but that's ok. this came up this week when i was debugging a process that needed me to rename a file or move some files. it'll get me where I'm going anyway. if i need a bunch of vars i'll have to come up with a differ solution (like selecting multiple non-contiguous lines in the code)....can Scintilla do that?
Posts: 12,141
Threads: 143
Joined: Dec 2002
In scintilla only 1 selection is possible.