I have inherited a custom foxpro 2.5 application that now needs to be updated (the code, not the version). I have never worked with foxpro before. I come from an asp.net background. This is the first time I have ever seen foxpro. I have a reference manual and small developers guide that came with the software package which has helped to some degree.
I need to add a drop down list to a screen file. The drop down list will be populated with choices depending on the record id.
while experimenting I have been able to create the following function which loads the item numbers into a referenced array.
How can I point the populated array to the drop down list?
also, what is the purpose for all the different file types for screens (reports, programs and queries for that matter)?
spr, spx, scx, sct
Thank you for your help
Jason Meckley
Programmer
Specialty Bakers, Inc.
I need to add a drop down list to a screen file. The drop down list will be populated with choices depending on the record id.
while experimenting I have been able to create the following function which loads the item numbers into a referenced array.
Code:
FUNCTION getItemNum
PARAMETER items, subassembly
SELECT itemnum FROM g:\jason\obams\proditem WHERE product_id = subassembly ORDER BY itemnum INTO ARRAY items
USE
RETURN .T.
-----------------------------
example:
CLEAR
DIMENSION b[1,1]
x = getItemNum (@b, 1)
DISPLAY MEMORY LIKE b
also, what is the purpose for all the different file types for screens (reports, programs and queries for that matter)?
spr, spx, scx, sct
Thank you for your help
Jason Meckley
Programmer
Specialty Bakers, Inc.