Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
My array vanished after ascan
Message
From
27/02/2008 06:46:26
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
27/02/2008 04:49:40
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01296749
Message ID:
01296774
Views:
6
>I create the array in form/method
>I call that method in form/command button.
>The last line of the command button is
report form myreport preview
>Any way, vfp recognize the array in the firsr variable.
>
>>Did you create the variable outside the init ?
>>
*-- calling function
>>private atitles
>>Dimension aTitles[1]
>>Do Repo ....
>>
>>HTH
>>
>>thomas

Chaim,

"I create the array in form/method
I call that method in form/command button.
The last line of the command button is"

You create that in a method of form and it goes out of scope when method ends and continues on last line of report. This would work just fine (I don't understand why you're using "Private" which IMHO has no place in VFP anymore):
local array aTitles[1]
*fill the array however you want
report form ...
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
Reply
Map
View

Click here to load this message in the networking platform