Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Array code
Message
From
02/03/2005 13:50:06
 
 
To
02/03/2005 13:38:09
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00992087
Message ID:
00992094
Views:
18
>I am trying to get fields to list, from an array, in a listbox. I have created the listbox and the code below seems to run okay, but when the form with the list box runs, I get an error message telling me that Picklist1 is not an array. I have stared at the code below for a while. Maybe your fresh look at it will see the error I am making.
>
>Private FieldCount,Kount
>FieldCount = Fcount()
>Dimension PickList1(FieldCount,1)
>
>For Kount = 1 To FieldCount
> PickList1(Kount,1) = Field(Kount)
>Next Kount

VFP can do it for you:
RowSourcetype = 8
RowSource = 'AliasName'
Previous
Reply
Map
View

Click here to load this message in the networking platform