Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Displaying Arrays
Message
From
16/07/2003 08:32:44
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00810581
Message ID:
00810600
Views:
9
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform