Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Gets the text inside the subfunction
#6
place cursor at end of sub line
 this will get all text  of that sub function

Function Function2
Trigger Aq     Help - how to add the trigger to the macro
Code:
Copy      Help
out
int h=GetQmCodeEditor
int pos=SendMessage(h SCI.SCI_GETCURRENTPOS 0 0)
int line=SendMessage(h SCI.SCI_LINEFROMPOSITION pos 0)
_s.getmacro
for int'i line+1 numlines(_s)
,str ss.getl(_s i)
,if(ss.beg("#sub"))
,,break
,else
,,str cf.addline(ss -1)
cf.rtrim; out cf


Messages In This Thread
Gets the text inside the subfunction - by Davider - 11-27-2022, 03:12 AM
RE: Gets the text inside the subfunction - by Kevin - 12-01-2022, 02:21 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)