javascript - How to ensure a multivalue field is an array -
i have issue piece of code reading multivalue field need process if array using loop.
var iquestionnairevar:string; var nquestionnairevarlen:int; iquestionnairevar = questionnairedoc.getitemvalue(ipvar); nquestionnairevarlen = iquestionnairevar.length; ( var = 0; <= nquestionnairevarlen; i++ ) {....} from see, appears loop walking each character of value instead of each element.
how determine if value in iquestionnairevar empty, single value or multivalue.
how make loop work correctly in each case?
this xsnippet "convert value array" converts every value array.
the result should work loop.
Comments
Post a Comment