Theo,
>I tried what you recommended and no luck.
>I used the GetLength(0) > 0 condition and it fails as well. When I walk through the code and check the value of e.PrimaryKeyValues, the debugger shows the value as undefined, the condition fails and the application crashes with the usual message.
Gotcha...well, in that case, just check if e.PrimaryKeyValues == null before trying to retrieve the values.
Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com