Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combo box with record source type = array
Message
From
18/07/2000 04:21:58
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, United Kingdom
 
 
To
17/07/2000 22:54:01
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00393629
Message ID:
00393678
Views:
18
>I place a code at init method of the form to creat a array eg.
>
>DIME puric(1,1)
>SELECT userid,name FROM users ;
>INTO ARRAY puric
>
>Then at the form, I have a combo box, record source = puric, and source type = array.
>
>The problem is when the form fire 1st time, system give me a error msg the :puric is not an array.
>
>Why?
>
>Thank in advance.

Your array is being released as soon as the INIT code is finished.

Make the array a property of your form, then it'll exist throughout the life of the form itself.

i.e.
1) Select the PROPERTY option from the FORM menu
2) For the property name, put puric(1)
3) The rest is the same as you have now, except always refer to the array as THISFORM.puric
Regards
Mark

Microsoft VFP MCP
Menulib - OO Menus for VFP www.hidb.com/menulib
Previous
Reply
Map
View

Click here to load this message in the networking platform