>Also, even if it were the wrong type, why the fatal error and not one trapped within VFP?
I have found on numerous occasions that C...5 errors are caused by "normal" VFP errors that should have been trapped. Therefore, I think, you should ask yourself what can possibly go wrong with your command. Wrong type is the most obvious candidate here... and yes, I agree that wrong type shouldn't happen with your code.
>I do agree separating out the str() call my help and I appreciate your thoughts.
Well, the idea is to divide the code into the smallest pieces possible.
What caused the problem in your original code? The WAIT WINDOW? Or the conversion with STR()? That's what you want to find out.
Some errors might even dissapear by the mere fact of separating a long command into pieces!
Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)