New Forum | Previous | Next | (P-PDF) Developers
Topic: export values for combobox
Conf: (P-PDF) Developers, Msg: 140845
From: nitress
Date: 10/7/2005 07:49 PM
For setting up a value as well as exportvalues to a combobox, it's been mentioned in Javascript document to code as follows:
var c = this.getField("StateBox");
c.setItems([["California", "CA"],["Massachusetts", "MA"]]);
Question: How to achieve this using VB?
I tried the following way.. but it never worked.
jsControl = jso.getField("StateBox")
Dim values1() As String = {"California", "CA"}
Dim values2() As String = {"Massachusetts", "MA"}
Dim all_values()() As String = {values1, values2}
jsControl.setItems(all_values)
Would be glad if someone could help me out with it. Thank you.