Say Grudge,
I think of Dex's solution as a "wrapper function". I literally have 100s of generic wrapper functions I use for all sorts of things in my primary project. Some of them are as simple as a SafeKill(SomeFileSpec), and others can be rather complex. Many of them use the IsNull() function to avoid the kinds of problems you had.
IDK, for me, it's just always important to remember that we can "wrap" some variable or function in another "wrapper function" to solve certain problems.
All The Best,
Elroy




Reply With Quote