>I have created a data driven application that allows users to save querries to a memo field in a table. The idea here is to push out proven code and also allows users to save their own queries. In my case I am using SAS on a Unix box so have a total of five memo fields as follows:
>
>
>PreCode - let VFP handle things like import data from Excel via Execscript
>Code - the SAS code that will run on the Unix box
>Log - SAS writes the results of the job back to a log area
>Results - if results are returned to the screen they are also captured here
>PostCode - after the code o Unix has processed additional local work may be need via Execscript
>
>
>In theory this works very well. However, it could be improved if I could add or integrate the same type or similar functionality included in VFP's MODI COMM editor. The most irratating thing is that if I am down 20 lines click out of the memo field then back in, the cursor moves to the top.
>
>Is there a way to copy highlighted code and only have that code execute? I suspect this is via some type of API but am unclear.
Wouldn't Sel* properties give you what you want?
Cetin