>Thanks Sergey, I looked at alert.prg but it requires foxtools and I'm trying to limit what is distributed with our app to keep the size as small as possible.
It doesn't need foxtools.fll if you're using VFP7. It used words() and wordnum() in versions up to VFP6, but it's re#defined to use GetWordCount() and GetWordNum() if compiled under VFP7. The code, AFAIK, is bracketed by #define statements. That was the reason for the update, actually.
I'm busy at the moment, but if the published version still requires Foxtools, let me know and I'll send you one which doesn't.