>And thanks again. I tested it in my app and it does *exactly* what I want. This is a very very useful function and is going into my permanent util library.
>
>Foxpro folks moving to .NET should pay attention to this one as it is one of the trickiest things I've found in terms of something that works so easily in Fox and just appears mystical in .NET.
One thing to remember however. This approach of evaluating things is to be avoided as much as possible. This is something I learned when moving into this new environment. We got used to that in VFP but, since the first day, I believe it is something that shouldn't have been part of the product. After a few years, I now understand the reasons for it. But, in order to migrate code as is, in the fastest way as possible, I also had to use it on occasional basis. It does the work.