Skip to main content
1-Visitor
May 17, 2018
Question

I can`t get one element array in scriptable component

  • May 17, 2018
  • 1 reply
  • 3877 views

Hi,

I have a problem with one element array in VBScript component.

VB decide that it`s  TypeName is Double and VarType is 5 instead of Variant 8204 and CStr() gives "-1.#QNAN".

So, I can`t get a value of my array.

MC15 file is attached.

1 reply

23-Emerald I
May 17, 2018

If I remove the parenthesis around your Input definition (leaving only an array of arrays) the behavior changes.  Every second click gives Output = Input, but if you change a value in Input, the first click doesn't work too well.  (I'm not a VBscript guy, so you're on your own. . .

ifomenko1-VisitorAuthor
1-Visitor
May 17, 2018

Thanks, I know this, but the second parenthesis is the main problem.

23-Emerald I
May 17, 2018

You've created a mess:

Capture.PNG

So Mathcad hand VBscript an array with a single element with three subelements each with three subelements. . .

No wonder it's confused.

How about what's attached?

That parenthesis was created  using

Capture1.PNG

instead of creating an array