window & picklist problem
- Posted by George Walters <gwalters at sc.rr.com> Mar 21, 2002
- 429 views
I have a window with a pick list which I would like to use multiple times within the main window. ( it is to look up gl accounts to distribute invoice totals to different accounts). There are 6 text fields each of which has a button beside to search for the appropriate gl account. If I use the routine only once (in another program) it works fine. Trying to use it multiple times I get a blank window with no buttons and no list of items showing up. I have checked the ID's and they seem to be correct. Am I way off base that you can't do this? Here's a sample of the item pickField[fldCount] = {pickWindow,routine_id("pickGLaccount")} -- save info here idTemp = create(List,"",pickWindow,0,0,420,200,#82) setFont(idTemp,"Courier New",8,Normal) pickIndex[fldCount] = -- save the id for use at another field pkOk = create(Button,"OK",pickWindow,150,205,50,25,0) onClick[pkOk] = routine_id("getPickItem") pkCancel = create(Button,"Cancel",pickWindow,200,205,50,25,0) onClick[pkCancel] = routine_id("exitItem") end if I've spend 2 days trying to solve this. any ideas what i should look for. It behaves like the id's for the buttons and List are wrong, but they look correct. george