Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Combo box text property not recognized.

Status
Not open for further replies.

Russ1005

Programmer
Dec 13, 2004
96
US
In VFP 7, I have a combo box called cboAcPayeeType. In the valid event I have the following code. When it tries to execute the first CASE statement, it bombs and says: Property TEXT is not found. There is a value in display in the combo box on the screen.

Any ideas why it does not recognize the text property?


DO CASE
CASE THISFORM.acdlrcltrsearchgui1.text = 'D'

THISFORM.ACmfgrsearchgui2.Visible = .F.
THISFORM.Acdlrcltrsearchgui1.Visible = .T.

CASE THISFORM.acdlrcltrsearchgui1.text = 'M'
CASE THISFORM.acdlrcltrsearchgui1.text = 'R'

THISFORM.Acdlrcltrsearchgui1.Visible = .F.
THISFORM.ACmfgrsearchgui2.Visible = .T.

ENDCASE

 
acdlrcltrsearchgui (whatever that is) doesn't have a text property. As for the value in display you can access it using the bombobox's displayvalue property.

boyd.gif

SweetPotato Software Website
My Blog
 
Craig

bombobox's displayvalue

Whatever THAT is ;-)


Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top