Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Array code
Message
From
02/03/2005 13:38:09
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Array code
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00992087
Message ID:
00992087
Views:
62
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
I ain't skeert of nuttin eh?
Yikes! What was that?
Next
Reply
Map
View

Click here to load this message in the networking platform