This works in a long script: Local $ar,$vec
For $fnam in $udfFnamsVec
$vec = GetFnamsInaMgmt_Hhc('udf',$gudfLvlFnamAr,$fnam)
For $i = 0 to UBound($vec)-1
Local $tvec = [$vec[$i],$fnam]
AppendRowToArray($ar,$tvec)
Next
Next
but this gives a syntax error: Local $ar,$vec,$tvec
For $fnam in $udfFnamsVec
$vec = GetFnamsInaMgmt_Hhc('udf',$gudfLvlFnamAr,$fnam)
For $i = 0 to UBound($vec)-1
$tvec = [$vec[$i],$fnam]