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?