bibbs
09-25-2002, 03:26 PM
I'm working on a project that requires contact details to be listed for different clubs. I thought the best way to do this was to have the club names in a combo box, which can be selected, then the contact details for that club could then be loaded with loadVariables command via a txt file.
I've tried many different code variations, and nothing is working yet. Can anyone help on this. This is what I have so far is
function onSelect1() {
onSelect1 = combobox.getSelectedItem().label;
if (onSelect1 == "clubA") {
loadVariablesNum("clubA.txt", 1);
} else if (onSelect1 == "clubB") {
loadVariablesNum("clubB.txt", 1);
}
}
The dynamic text field has been set as multiline (without wrap), the variable name is myContact. The handler on the combo box is called onSelect1
Does it matter that multiple txt files can be loaded into the same text field with the same variable name?
I've tried many different code variations, and nothing is working yet. Can anyone help on this. This is what I have so far is
function onSelect1() {
onSelect1 = combobox.getSelectedItem().label;
if (onSelect1 == "clubA") {
loadVariablesNum("clubA.txt", 1);
} else if (onSelect1 == "clubB") {
loadVariablesNum("clubB.txt", 1);
}
}
The dynamic text field has been set as multiline (without wrap), the variable name is myContact. The handler on the combo box is called onSelect1
Does it matter that multiple txt files can be loaded into the same text field with the same variable name?