Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Table from Array
Message
From
06/03/2005 10:33:33
 
 
To
06/03/2005 06:41:40
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00993044
Message ID:
00993100
Views:
20
Here is a more detailed account of what I need to accomplish. If there is a way to do this without using an array, so much the better. Any suggestions are gratefully received.

--------------------
Form 1
Code in the first form grabs the table name where the field I want to process is located

Public TableName,TargetPath,FieldCount,Kount
TableName = Getfile('dbf')
Use &TableName

--------------------
Form 2
Loads the table information into an array

gnFieldcount = AFIELDS(gaMyArray) && Create array.
CLEAR
FOR nCount = 1 TO gnFieldcount
? gaMyArray(nCount,1) && Display field names.
ENDFOR

--------------------
I want to be able to 'pick' a field name from the array and use the field name to process that field's contents further into the app I am writing. I have put a list box on form2 and used the builder. The builder tells me that the array does not exist. When I run the App from the beginning, it crashes on the fact that the array does not exist. However, the array does exist, I can see the results on the form.(see code '?' above). Not being one to give up easily, I continue through the builder process and then open the properties and make modifications. I have had no success yet.

--------------------
I ain't skeert of nuttin eh?
Yikes! What was that?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform