Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combo box with record source type = array
Message
De
18/07/2000 04:21:58
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, Royaume Uni
 
 
À
17/07/2000 22:54:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00393629
Message ID:
00393678
Vues:
17
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform