get return value from ActiveX S_OK in javascript

  • Thread starter Thread starter Joe
  • Start date Start date
J

Joe

I have a javascript that calls a method of an activex control. I want to get
the return value, S_OK or S_FALSE.

I tried var r = document.Form1.PCtl.Download('h')
document.write(r) // to see the value

but r is coming out as undefined.
 
Hi,

If i remember right, you cant get Com HRESULT value from scripts. if
HRESULT isn't 0 (S_OK) you will get exception that you can catch using
try...catch.

Natty Gur[MVP]

blog : http://weblogs.asp.net/ngur
Mobile: +972-(0)52-8888377


*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top