Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Listbox problem
Message
 
To
05/08/2007 02:59:49
Reza Meamar
Homa Programming Group
Shiraz, Iran
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP1
Miscellaneous
Thread ID:
01245997
Message ID:
01246001
Views:
24
Hi Reza,

1) Add this code into Init() event of the listbox class/object
This.Tag=SYS(2015)
2) Add this code into Destroy() event of the listbox class/object
IF USED(This.Tag)
   USE IN (This.Tag)
ENDIF
3) Add "INTO CURSOR (This.Tag)" to end of RowSource's value

MartinaJ

PS: I don't test it :-)

>Dear all,
>I have a form with a listbox in it.
>I set it's RowSourceType = 3 ( SQL Statement ) and RowSource = SELECT Admision.AdmCode, Admision.FileNum, SickInfo.SickName, SickInfo.SickFam, SickInfo.SickDad FROM Admision LEFT OUTER JOIN SickInfo ON Admision.FileNum = SickInfo.FileNum WHERE &FilterStr
>But each time that I change FilterStr based on user selection, and run thisform.list1.requery , a browse window shows. It don’t occur when I run my form for first time, but when I issue requery command, browse window come on my form. Why?
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Previous
Reply
Map
View

Click here to load this message in the networking platform