Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
List Boxes & ReQuery()
Message
From
17/04/1998 18:03:40
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
17/04/1998 17:58:35
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00093057
Message ID:
00093070
Views:
22
>>>I'm having a problem with a list box whose rowsourcetype = fields. When I load the form, I do a nodataonload = .T. with my view, so initially the list box contains nothing. When I requery the view nothing happens in the listbox until I tab over there or set focus with the mouse. I tried doing a THISFORM.Refresh() but nothing happens. Am I missing something simple here, maybe because it's Friday and I want to go home. Any help would be appreciated.
>>>
>>>Mark A. Struck
>>Mark,
>>Not smart but try :
>>
>>requery("myView")
>>ThisForm.list1.setfocus
>>this.setfocus
>>
>>Cetin
>
>Cetin,
>
>I was doing it that way but it seemed a little kludgy. I figured there had to be a better way and Sylvain showed me a better way. Thanks anyway.
>
>Mark A. Struck
Yes, "kludgy" was the word that I couldn't remember instead of "not smart" and thanks for pointing to Sylvain's reply, it's better.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform