>Hi Cetin,
>
>Thanks for the tip. But is there a way to loop thru all the array instead inserting a field for each array element. TIA
It might be one or multiple 'report' fields. Depends on what you want to do. ie: Say you have a form method looping the array and concatanating array rows.
lparameters taArray
local ix,jx,lcResult
Set Textmerge To Memvar lcResult Noshow
Set Textmerge On
For ix=1 To Alen(taArray,1)
If ix > 1
\
Endif
For jx=1 To Alen(taArray,2)
\\ <<taArray[ix,jx]>>
Endfor
Endfor
Set Textmerge Off
Set Textmerge To
return lcResult
In the above case in report you might have just one fixed font field with expression :
thisform.myArray2Str(@myArray)
PS: Note that this report would be dependant to that form but it's a sample to show that report could access methods that the report caller routine could and use keywords like 'thisform'.
Cetin