Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using an array in a popup List

Status
Not open for further replies.

SkeeterEater

Programmer
Dec 31, 2000
2
US
Please forgive me I'm new at Programming but I need to know how to use a fild name in a popup list that is not the current .dbf being used by the current screen. I have tried several things, the following is one which seems to be close but it doesn't seem to work either, Please Help!

In the current screen, which is the screen that I would like to use the array in, I placed (arrayftm) as the array name then I placed (foo.name) for the first element and (1) as the number of elements. The variable of the popup list is m.fnsend (not in table).

I declared the array in the screen code under "On Screen Exit (Valid)" in the screen were the information for the popup list will be entered from, as follows:

#NAME foodsend
USE food.dbf
DECLARE arrayftm(5000,2)
COPY TO ARRAY arrayftm FIELDS food.name, food.size

I'm using Foxpro 2.6 for Windows and used Genscreen to design the screens.

Thanx Scott
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top