Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Play with Array
Message
From
18/12/2002 02:55:10
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
17/12/2002 17:27:07
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Miscellaneous
Thread ID:
00732423
Message ID:
00733992
Views:
20
>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.
* form.myArray2Str
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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform