Perhaps use a try-catch statement to initialise a variable, then use
it instead.
e.g.
try {
tempTitle =
xmlfile.body.GetListItemsResponse.GetListItemsResult.listitems.data.row
[a].XmlAttributes.ows_Buildlevel ;
}
catch (Any e) {
tempTitle = '' ;
}
On Jul 22, 8:32 am, "KNOTT, Brian" <[email protected]> wrote:
> Hi guys.
>
> ....
>
> In this example I need to check to see if the
> 'xmlfile.body.GetListItemsResponse.GetListItemsResult.listitems.data.row[a].XmlAttributes.ows_Buildlevel'
> node exists before I reference it.
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"cfaussie" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cfaussie?hl=en
-~----------~----~----~----~------~----~------~--~---