I'll look at it again then, thanks! What I've done so far is create a form that works as a messagebox and I pass the message, title, and button captions to the form. It works fine and I was able to resize the form and buttons based on the captions and size of the message, but rather than include the form in the project, I'd like to be able to save it as a class and add the code to a method of the calling form and run it that way. Is there anyway to do this that you know of? I've never included one form definition inside another form, so I don't know if it is possible. I've always just added the form or class to the project.
Tracy
>>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.
.·*´¨)
.·`TCH
(..·*
010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"