Link to home
Create AccountLog in
Avatar of Eduardo Fuerte
Eduardo FuerteFlag for Brazil

asked on

VFP - combobox retrieving values ?

Hi Experts

I'm facing a problem in retrieving the column sb_cccx that has the code associated with the description (like bellow)  from a combo when clicking in an combo option during edition:

Select SB_CCCX, Desc From CCCX;
      ORDER By Desc;
      WHERE SB_EMP = m.SB_EMP And;
      INTO Cursor temp_cccx

tam = _Tally
If tam>0
      Go Top
            Thisform.pageframe1.page1.cmbCCCx1.List(i) = temp_cccx.Desc
            i = i+1
How to code to  make  thisform.msb_cccx property to have the correct value when the user clicks the option ?

Avatar of Pavel Celba
Pavel Celba
Flag of Czechia image

Link to home
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of Eduardo Fuerte


Hi, Pcelba

Using the initial suggestion the only problem is to obtain existing values in the combo when open the form and navegating betwenn registers (it comes empty)

What is needed to workaround it ?

The combo should be populated in Form Init method or elsewhere. Where is your code to create Combo contents?

What are all non-default properties for the combo?

Did you try to look at combop properties in debugger?

Sorry the delay....

I've checked some properties and made some code adjusts and evereythings is ok...