-----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Dave Thayer Sent: 21 September 2010 16:36 To: [email protected] Subject: Re: Cannot select in List Box
On Tue, Sep 21, 2010 at 4:11 AM, Peter Hart <[email protected]> wrote: > My problem is that on page 1 I cannot select an item in the list box. > > I can however click and drag down to select it. > [...] > Anyone else had this problem. Tracy wrote After you populate the listbox, do you call the requery method? Tracy Pearson PowerChurch Software Dave Thayer Wrote Denver, CO Me, me! I've used the method discussed here <http://groups.google.com/group/microsoft.public.fox.programmer.exchange /msg/665e3301973eca51?pli=1><http://tinyurl.com/289xyaw> with some success, although not 100% of the time. Hi Tracy and Dave I had already the requery() method after each List Box was populated. So move on to trying Dave's suggestion. Still not working so. Tried in the code for the pick tables button Local lcTable As Character lcTable = Getfile("dbf","Select Table","Select",1,"Add Foxpro Table") Insert Into SelectedTables (cTable,cPath) Values ("",lcTable) lcTable = Proper(Justfname(lcTable)) Replace SelectedTables.cTable With lcTable With ThisForm .cName = lcTable .lstTables.Requery() .FillList1() && Populate all the list box's .LockScreen = .T. With ThisForm.PageFrame1 && Activate Pages and set 1st item List Box 1 Selected .ActivePage = 5 .Page5.Activate() .Page5.List1.Selected(1) = .T. .ActivePage = 4 .Page4.Activate() .Page4.List1.Selected(1) = .T. .ActivePage = 1 .Page1.Activate() .Page1.List1.Selected(1) = .T. EndWith .LockScreen = .F. EndWith It seems that activating the page then selecting the first item did the trick. Not sure if I need both ActivePage = 5 then Page5.Activate() Thanks Peter Peter Hart Computers P.S. Rant = .T./ Used bottom posting but really hate it, I have already read what the thread is all about, don't need to scroll through all that to find the respondents answer. Rant = .F. _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/a57fa4cf19531343a2ee11b57db8e3af100...@server.peterhartcomputers.local ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

