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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Inserting a combo box into the field of a view or table

Status
Not open for further replies.

xcmtber

Programmer
Oct 30, 2000
1
US
I have a data entry application that uses a view to display the user input. I would like the user to be able to change the data in this view, but rather than simply typing new text into the field, I would like to have the user select the correct entry from a list that is displayed when the field is clicked. If somebody has an idea as to how this can be done, could they please let me know?

 
You can use a Grid control to display the data. Grid columns support not only text boxes but also combo boxes, check boxes, and so forth.

Robert Bradley

 
It sounds to me like you are presenting the data to the user in a Browse window, is this correct?

If so, you can create an object reference to the Browse window using the NAME argument, and then manipulate it just as you would a grid.

USE MyView
BROWSE NAME oBrowse
WITH oBrowse.Column1
.AddObject('oCombo','ComboBox')
.CurrentControl='oCombo'
.oCombo.visible=.T.
.oCombo.RowSourceType=1
.oCombo.RowSource='One,Two,Three'
ENDWITH Jon Hawkins
jonscott8@yahoo.com

The World Is Headed For Mutiny,
When All We Want Is Unity. - Creed
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top