cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

How to use VB API (actually COM) in JavaScript ?

Kittychen
13-Aquamarine

How to use VB API (actually COM) in JavaScript ?

I found few JavaScript examples, one shown below and it works fine on Windows HTA script (JavaScript). 

VBA

Set cAC = New CCpfcAsyncConnection ' VBA

JavaScript

// equivalant to the line above but in JavaScript
cAC = new ActiveXObject("pfcls.pfcAsyncConnection") // this line works fine


But I can't find other equivalent statements in JavaScript like this:  
VBA

Set Mitem = New CMpfcModelItem

JavaScript

 

Mitem = what? // don't know how to do this in JavaScript

Also this example: 
VBA

Dim type as EpfcFeatureType
type = EpfcFeatureType.EpfcFEATTYPE_HOLE

 

 

JavaScript

 

 

what's the equivalent statement in javascript? 

 

ACCEPTED SOLUTION

Accepted Solutions

There is a JavaScript API called .Web/Link you can use. So you don't need to figure out how to use VB API in JS except I had missed something.

 

Br,

Eike

View solution in original post

2 REPLIES 2

There is a JavaScript API called .Web/Link you can use. So you don't need to figure out how to use VB API in JS except I had missed something.

 

Br,

Eike

Announcements


Top Tags