I am using a measurement software at work that uses VB scripts.
I want to modify it and for that I need to know what arvalues(2)
is.
So, it is a Variant and is used as follows (code excerpts):
Option Explicit
Dim oDS As CamDatasource
Function PXLoadForm(ViewId As Long, FrameId As Long, arvalues() As Variant) As Long
Set oDS = arvalues(2)
'and is then used as
Test = oDS.Parameter(Testparameter)
I tried to simply output it as a string in a a.WriteLine CStr(arvalues(2))
but that did not work.
Unfortunately the program does not output debug info so I do not know why it fails. But the WriteLine as such works (tested it in other places).
I am thinking that the Variant needs to be read more like an array or something.
Does anybody know if this is the case and/or how to do it?
Thank you very much
Alex