How to handle NULL Objects

toortoor Member Posts: 52
edited 2005-08-10 in Navision Financials
Hey there,

how can i handle NULL Objects in Fin250?

I get runtime errors whenever i try to assign an Empty-Object to an other Object.

For example (msxml-Automation):
ReturnedNodeList := RootNode.selectNodes(NodePath);

If RootNode.selectNodes(NodePath) returns the NULL-Object, i get an error message.

Any ideas?

How can i simulate the ISCLEAR-function from attain?

thanks in advance
tobias

Comments

  • pduckpduck Member Posts: 147
    i had an example where i checked a fieldsize property if it is greater than zero.
  • toortoor Member Posts: 52
    I tried something like :

    IF RootNode.selectNodes(NodePath).nodeName <> '' THEN ...

    But it doesn't work. I'm getting an error message that the object is not instantiatet.



    tobias
Sign In or Register to comment.