thanks for the url. I tried this but the replace function isn't defined here. I know there is also a replacetext-function in comdlg32. Do you know anything about this or another way to use these funtions?
FindText only need to fill in lpstrFindWhat and wFindWhatLen.
ReplaceText also needs to fill lpstrReplaceWith and wReplaceWithLen.
Now, I never use this function. So I have no idea yet. But one thing that suspicious to me is, maybe (just maybe) you also need to define a callback procedure for this function to work cos it sends an internal message to the caller. And do the "actual replacement" in the callback procedure. If my guess is true, then you can't work this from VFP directly. But I hope it's wrong
I'll try this.
But do you know what function is used to find/repl in a text editor? The menu is english and I'm looking for a dialog in the user-language. I thougth the ReplaceText would be the best one. Do you have other suggestions?
I already tried ReplaceText. I think I'm right. It only display the find & replace windows, but it doesn't do the "actual replacement". You're gonna need a wrapper for this (callback function)
Another idea is to create your own dialog. You can use FileToStr() function. Search the text using AT() and do a string concatenation using SUBSTR() etc. It's not very hard to do (I think)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.