dim cur
cur = objTX.CurrentInputPosition
dim intvartype, intlbound, intubound, intCurrentPage
intvartype = vartype(cur)
intlbound = lbound(cur)
intubound = ubound(cur)
This returns 8195, 0 and 2 respectively
intCurrentPage = cur(0)
This fails with a "Type mismatch" error
The object objTX is the TextControl object which deals with creating a word document, merging data etc. All that is working OK I just can't get at the values inside the (long) array that is returned from "objTX.CurrentInputPosition". I'm afraid I'm stuck with VBScript as this is a legacy system that I've been asked to change something on.....
Is there a way I can put some kind of add in (dll????) that will take a long array and convert it into a variant type array??..... I'm at a loss how to go about that though..
<message edited by jeni on Wednesday, April 23, 2008 8:16 PM>