>Barbara,
>
>Honestly, I'm just preparing for the future application, so I haven't designed yet :) Today I tried Vlad's suggestion, it works, but I think, I better would use Edit box instead of MODI COMM.
>As far as I understand, I should do the following:
>1) editbox.value=filetostr('MyProcedure.prg')
>2) lnPos=atc('MyFunction',editbox.value)
>3) Scroll to this position - How can I do? Something with SelStart, but don't know exactly, how
>4) Edit the code
>only if code was modified (check this)
> 5) strtofile(alltrim(editbox.value),'MyProcedure.prg') ??? -
> 6) compile myProcedure
>
>
>This is the algorithm, which I have in mind. What do you think? I'm not also know exactly about third step, could you help, please?
>
Abandon the idea; if you really need discrete editable procedures, make them separate files so that you don't accidentally duplicate a function name in the file or risk every piece of code every time you edit a procedure. This is an incredibly poor approach to managing code.