Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why the combo box doesn't show my display value?
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01077565
Message ID:
01077608
Views:
47
>>>The displayed value must be in first column... and bound property is use to indicate the column containing the value bound to rowsource... also check the columns count and columns width.
>>
>>Well, I think I found why it doesn't work <g> The value I'm using doesn't correspond to the right value. I guess, when my PK is saved to the table it's calculated again and therefore changes again. I thought I fixed the problem, but obviously I fixed it in some other place.
>What about:
>with this
>	if .lGetAllCarriers
>		.cboCarriers.rowsource = ''
>		thisform.Carriers_biz1.lRequeryAllCarriers = .t.
>
>		.lGetAllCarriers = .f.
>		
>		.cboCarriers.rowsourcetype = 6
>		.cboCarriers.rowsource     = 'crsCarriers_All.FieldToDisplay,crsCarriers_All_Carriers_pk'
>                .BoundTo                   = .t.
>                .BoundColumn               = 2
>		.cboCarriers.Requery()
>		
>		if not xEmpty(thisform.cSelected_Carriers_pk)
>			.cboCarriers.value = thisform.cSelected_Carriers_pk			
>		endif
>	endif
>endwith
>
No, thanks <g> I was looking to too many places at once and so I asnwered in your message instead of my own <g>
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform