3.2.0

Code to get the array in a combo

I have my combo text set as [[[ obj.setItemText(["Home", "Favorites", "Font size", "Search"]); ]]], I need to get the full array. getItemText() gives me a blank and getItemText(1) gives me Favorites. I need to get the full array >>>>> please help
t4
March 23,
Why not assign the array to your own var and then pass that to setItemText()?
var  myArray = ["Home", "Fav", "Font", "Search"]

obj.setItemText(myArray)
Anthony
March 23,
i'm trying to avoid doing that. i have abt 8 combos on the page populated from a db, and i don't want an extra exercise of having a myarray1, myarray2...
t4
March 24,

This topic is archived.

See also:


Back to support forum