login about faq

I have an issue when using the ChilkatPath method of the ChilkatXml activex object. I mostly use it to update the reference, using the "$" command, which seems to work well. However, I am unable to distinguish when it fails from when it succeeds. According to the example code I should check that the result = vbNullString. However, this is always returning true, even when successful. Here is the code in question where sCKPath is using the "$" command.

function CkGetPathNode(byRef oCKXml, byVal sCKPath)
    dim oCKNode, sResult

set oCKNode = oCKXml.getSelf()

sResult = oCKNode.ChilkatPath(sCKPath)

if sResult = vbNullString then
        set CkGetPathNode = Nothing
        exit function
    end if

set CkGetPathNode = oCKNode
end function

Am I doing this wrong or is there another method to check that ChilkatPath is successful?

asked Jan 23 '14 at 12:05

harryt07's gravatar image


Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Jan 23 '14 at 12:05

Seen: 2,574 times

Last updated: Jan 23 '14 at 12:05

powered by OSQA