Sorry, I missed that point. Go back to MyAlias = ALIAS(). But what if more than one table is open before you restore a view? Can you not just use a Session class to do this in? I do not save environments in views, so I do not know if they would respect the private DS of session class. I also just do not like them in a runtime/production setting.
>Your changes are interesting. I had it using SELECT instead of alias() originally but when it restored the view, the work area was different for the file that was originally selected and it bombed. Is a view supposed to maintain the same work areas for the files?
>
>Tracy
Mark McCasland
Midlothian, TX USA