Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combobox issue
Message
From
16/06/2017 07:37:28
 
 
To
16/06/2017 07:30:45
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows 7
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01652064
Message ID:
01652066
Views:
56
>>Dear Experts
>>
>>I have these codes
>>
>>
>>select temp
>>go top
>>messagebox(transform(inc_per))			&& thiss dispaly the value =4.5
>>thisform.container200.text20.value=inc_per		&& this dispalys the value =4.5
>>thisform.container200.combo5.value=inc_per		&& but the value of variable inc_per is not showing in combo
>>
>>
>>textbox is getting variable value but combox is not getting.
>>
>>Here are two images attached also
>>
>>Please help me what i am doing wrong?
>
>What's the rowsource of the combo? The value for the combo is not its displayvalue, it's an index into the rowsource, so if its 4th (or 5th, perhaps it rounds) row has, say, 75, the combo will display 75. You may play with .combo.boundto=.t., perhaps that would help.
cnature=alltrim(thisform.container200.combo2.Value)

if thisform.container200.combo1.value=ALLTRIM("Filer")
	text TO cmd TEXTMERGE noshow
select afiler,detail from rates where nature='<<cnature>>'
	ENDTEXT

	if sqlexec(con, cmd,'nat1') < 0
		aerror(laerror)
		messagebox(laerror[1,2])
		return
	endif

	select nat1

	thisform.container200.combo5.rowsource="nat1.afiler"
	thisform.container200.combo5.rowsourcetype= 6
	thisform.container200.label14.Caption=ALLTRIM(detail)
	
	endif
Previous
Reply
Map
View

Click here to load this message in the networking platform