VB Arrays in OpenInsight (OpenInsight 32-Bit)
At 16 AUG 2007 06:50:30PM Clay Borne wrote:
Does anyone know how to dimension a blank array like in vb. Basically I need this:
Dim VBArray()
To be initialized in OpenInsight. Thanks, any help is appreciated.
At 17 AUG 2007 06:04AM [url=http://www.sprezzatura.com]The Sprezzatura Group[/url] wrote:
You mean like
pre.code {
background-color: #E5E5E5;border: 1px solid #000000;width: 450px;padding: 5px;font-family: courier, verdana, arial, serif;margin: 0px 10px auto;}
DIM VBArray( 100 ) Mat VBArray='World leaders in all things RevSoft
At 17 AUG 2007 08:23AM Bob Orsini wrote:
Check Dimension in the help.
At 17 AUG 2007 09:00AM Clay Borne wrote:
I keep getting a "Variable has been dimensioned and used without subscripts" error. The code:
OOApp=OleCreateInstance("com.sun.star.ServiceManager")
desk=OOApp-]CreateInstance( "com.sun.star.frame.Desktop")
Dim VBArray(100)
MAT VBArray='
Doc=OleCallMethod(desk,'loadComponentFromURL',"private:factory/scalc","_blank",0,VBArray)
At 17 AUG 2007 09:31AM John Bouley wrote:
I tried this in another piece of converted VB code and could not find an answer. It may be that passing an array through oleCallMethod is not possible. If anyone has a solution I would also like to know.
Thanks,
John
At 20 AUG 2007 12:13AM Colin Rule wrote:
I doubt whether the OLE object is aware of the Dimensioned array constructs from OpenInsight. You might have to create these as a string of Char(0) but you would need to know the size of the array from the VB side. Just a guess.
At 21 AUG 2007 08:55AM Clay Borne wrote:
Any suggestions from revelation?
At 21 AUG 2007 10:02PM Bob Carten wrote:
Hi Clay.
I think you need to make a 'helper' function which accepts a string and a delimiter uses the VB Split function to return an array. You could ewrite it in VB. If you look up windows scripting components ( .WSC files ), I think you'll find that you could oswrite a scripting component file, register it, then use it as a com component with OleCreateInstance. Another approach is to Create and instance of the Windoes scripting host Using OLECreateInstance, then use AddFunction to add a function that creates the arrays and calls our deired function, returning the result.
The following looked interesting too.
http://support.microsoft.com/kb/q250344/
hth
Bob
At 22 AUG 2007 07:57AM Clay Borne wrote:
Thanks Bob, I will try that.
At 14 JAN 2010 09:47AM John Bouley wrote:
Has anyone found an easy way to create a VB array in OI?
I need to pass a variant array to the oleCallMethod.
I'm hoping that this has been long solved and someone is willing to share.
Thanks,
John
At 14 JAN 2010 10:00AM John Bouley wrote:
Has anyone found an easy way to create a VB array in OI?
I need to pass a variant array to the oleCallMethod.
I'm hoping that this has been long solved and someone is willing to share.
Thanks,
John