Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Init event
Message
From
05/06/1997 13:36:09
Holly Clawson
Travelcenters of America
Westlake, Ohio, United States
 
 
To
05/06/1997 12:20:44
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00035152
Message ID:
00035247
Views:
39
>>>>>Does anyone have an idea on this. I create 3 different arrays in the init event of the formset. The first time I run the form the arrays are created, but when the got focus of the first control is taken the arrays are gone and can not be found. Although, after run the form the first time I can run as many times as I want and the arrays are found.
>>>>>
>>>>>Holly Clawson
>>>>
>>>>It's much better to use form property-arrays which will be scoped for whole form.
>>>
>>>How do you create a FORM PROPERTY ARRAY?
>>
>>When I add a property to my form, I can not get the property to appear. The only way I can get it to appear is at the class level. And do I create this at the formset or on the form that the array is contained? Also where do I put thisform.myarray[1].
>
>If you have formset then you create custom property for formset. What do you mean saying 'to appear'. If you mean 'in property sheet', then look at the bottom: all new properties appear there.
>For formset you should use Thisformset.myarray[48] and this property scoped for whole formset, i.e. you could use it in any event/method code inside the formset.

OK I created the array properties at the formset level I put this code in the load event of the form set
Dimension Thisformset.atacustno[1]

Select tacustno from custmast;
into array thisformset.atacustno
mcustno=atacustno

In debug I am returned with an array that contains a logical variable. When I created the array it logical .f.

What did I miss in this conversation on creating an array property?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform