Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Weird combos
Message
From
20/09/1999 11:01:31
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Weird combos
Miscellaneous
Thread ID:
00266719
Message ID:
00266719
Views:
39
Here's one I've never seen before. I have a combo in VisFox 3.0b which is acting weird. I have a number of combos on a screen which are based a number of joins, conditions etc. To improve loading speed and to delay the list of queries to load the individual combo, I thought I would use the code below. It simply states that if I have a value when I init the code, show it as a value. Once the control gains focus, load the data ready for use and set the rowsource and rowsource type.

Pretty straight forward stuff except that now when I click ona combo it does not drop down correctly every time. It will sometimes show a subset of the entries and an up and down arrow at the top and bottom of the list. It doesn't matter how many entries I have and whether I would normally of a scrollbar at the right it still may appear. The arrows work correctly, but its different... How do you explain this one to a user when you don't know what’s happening yourself...

Any comments, suggestions or hints would be gratefully received.


Jason

>>Init
lcCurrentVal = eval( this.controlsource )

if !empty( lcCurrentVal )
this.rowsourcetype = 1
this.value = lcCurrentVal
endif

>>GotFocus
bseComboBox::GotFocus()

if empty( this.rowsource )
this.buildlist()
endif

>>BuildList

this.rowsource = ""

this.rowsourcetype = 6

select Material, Cvalve_Mat ;
from BodMat, MatProps ;
where BodMat.BodMatId = MatProps.BodMatId ;
order by 1 ;
into cursor cMaterial

this.rowsource = this.cRowSource
Next
Reply
Map
View

Click here to load this message in the networking platform