can you get the text from the current line of code and pass it to an external program without selecting the line?
Thanks
Craig

Code: Select all
Procedure.s getidelinetext()
lineno$ = ProgramParameter(1)
linenumber = Val(StringField(lineno$,1,"x"))
pbfilename$ = ProgramParameter(0)
linecount = 1
fh = OpenFile(#PB_Any,pbfilename$)
If fh > 0
While Eof(fh) =0
ld$ = ReadString(fh)
linecount + 1
If linecount = linenumber + 1
linetext$ = ld$
EndIf
Wend
CloseFile(fh)
EndIf
ProcedureReturn linetext$
EndProcedure