Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Displaying Arrays
Message
De
16/07/2003 08:32:44
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00810581
Message ID:
00810600
Vues:
10
>Erik
>
>I now have the select statement in the init event on my form:
>
>
>SELECT DISTINCT reports.descrip ;
>FROM ("U:\Data\Reports.dbf") ;
>INTO ARRAY neil
>
>WITH thisform.list1
>	.RowSource = 5
>	.RowSource = 'neil'
>	.ColumnCount = 1
>ENDWITH
>
>
>But nothing shows in my list box. Is there any reason for this?
>

It's a scope problem. When you create the array in the Init method, it's local to that method. You need to make the array a property of either the form or the listbox. Then, be sure to refer to it as This.Neil (or whatever) when you use it.

Tamar
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform