Can you explain me how I can send to the current Delphi Unit I'm working on a portion of selected text in my own application at current caret position (a little like I can send selected text to Word using automation) ?
I need to check that Delphi (5)
- is installed // if not delete option in the menu prog or toolbar
- is running // if not open it giving it the name of the project to edit and the unit to use
- a project is open // which project, name, path
- the name of the current Unit // the unit where to insert portion of text
// portion of text will be or header, or tested functions and or procedures, ...
- the position (line) of the caret // to insert the portion of text
- eventually keepinp the formatting (= indentation)
My prog contains actually more than 10.000 snippets (I could use the librarian of GExpert or dig into the code source, but it's too technical for me) and I want my prog use it's own solution.
Points begin at 100 but they will reach the followings levels:
- 100 : for fully explanation of the code
- 250 : working code solution using the clipboard (if it's possible)
- 400 : working code solution without using the clipboard but a solution like Word automation
Thanks all for your help,