mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jan 2006
Posts: 19
E
Pikka bird
OP Offline
Pikka bird
E
Joined: Jan 2006
Posts: 19
i am making a text editor and i am wondering is it possible to execute Find, Replace, Replace All and Undo commands in a text box, if so what commands would i use?

Last edited by evidence22; 15/03/06 02:09 AM.
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
I can see all of these being possible, but the first thing that occurs to me regarding scripting these options, is what kind of format is the original text stored in? Is it in a hash table, a text file, an ini file or something else.

If a hash table, then the find would be done using $hfind
if a text file, the find would be done using $read(file.txt,w,<wildcard search item>) or $read(file.txt,s,<search item>)

We definetly(sp?) need more information before we could provide you with detailed assistance. Minimum, I would say, is the manner in which the original text was being stored.

Also, for the undo, would you want just the most recent change undoable? or be able to go back multiple changes?

I can see how this could be really complex, and personally, I think using Notepad or Wordpad would be far more efficient.


Link Copied to Clipboard