I'll give this a try. That's exactly what i was thinking, about the misleading error. I'll tell you how things go..
Thanks
Jaime
>
>
selectSingleNode returns a
.NULL. in case the query produces no results. I believe the error message, issued in the
lcCountry assignment instruction, is misleading: it should say something like 'loElm is a NULL object' (since its type is
O). Your checking code should be
>
if !isnull(loElm)
> lcCountry = loElm.text
> else
> ComReturnError('myclass', 'cannot find country node')
> endif
>
Why do programs stop working correctly as soon as you leave the Fox?