TYPE("arg.callscript.scriptmodules.item(0).questions.item[0]") = "O" && <-- correctThe above is a single question object in the questions collection with an array of matching answers that matches my loQuestion object.
arg.callscript.scriptmodules.item(0).questions.item[0].question && character arg.callscript.scriptmodules.item[0].questions.item[0].answers && arrayThe answers array exists because:
TYPE("arg.callscript.scriptmodules.item(0).questions.item[0].answers") = "A" && correct, answers is the array I need ALEN(arg.callscript.scriptmodules.item(0).questions.item[0].answers,1) = 1 && correct there is one element in the arrayHowever, if I try to copy the array over to loquestion.answers, it bombs:
=ACOPY(arg.callscript.scriptmodules.item(0).questions.item[0].answers,loQuestion.Answers) && bombs with 'Feature is not available' msgand:
FOR it = 1 TO ALEN(arg.callscript.scriptmodules.item(0).questions.item[0].answers,1) -1 ? it && prints 0 which is correct - one element in the array ENDFORHowever,
FOR it = 1 TO ALEN(arg.callscript.scriptmodules.item(0).questions.item[0].answers,1) -1 ? arg.callscript.scriptmodules.item(0).questions.item[0].answers[it] && BOMBS! Returns OLE Error: 'Invalid number of parameters' ENDFORSo I cannot step throught the elements to copy it to the loQuestion.Answers array either.
? arg.callscript.scriptmodules.item(0).questions.item[0].answers[0] && BOMBS! Returns OLE Error: 'Invalid number of parameters'I know it's an array, but passed property seems to be an array I cannot access the elements of and in vfp the object type I create to hold it it is of type 'Z' with a value of 'Array'