I want to use a dynamic array of strings so that I do not have to hard code the element count. When I do this via redim statement (either with an earlier dynamic dim or without) and pass the array (of strings) to java I get a mismatch parameter error. If I dim the array with a specific number it does not generates the error. The dynamic and static sizes are the same 6 items (0 - 5). If I change the static dim to 5 or 7 it still works without throwing the error. Help!
Subject: Dynamic Array and Java
Do you want to do this using LS or JAVA? Your subject states “Dynamic Array and JAVA.” It sounds more like LS.
Subject: Dynamic Array (LS) and Java (Passed parameter)
I am passing a array from LS to Java and if the array is defined as variable length and then redimed to a specific length I get an error. If I simply defined the array a fixed length the error does not happen. SO I am looking for a way around this error that preserves my ability to use the dynamicy sized array.
Subject: RE: Dynamic Array (LS) and Java (Passed parameter)
Have you tried assigning the array to a Variant and passing as a vector?
Subject: RE: Dynamic Array (LS) and Java (Passed parameter)
Stan, Thanks for the help!
By dimming a new variant, setting equal to dynamic array, and passing that the mismatch error on that variable went away.