General information
Category:
Forms & Form designer
Title:
Donde colocar el código
Environment versions
Network:
Windows 2000 Server
Buenos días a todos. Guiandome por un artículo de Hilmar Zonneveld con este código agrego un combobox sobre un cuadro de edición en su evento RigthtClick.
THISFORM.AddObject ("I_AYUDA","COMBOBOX")
WITH THISFORM.I_AYUDA
.RowSourceType = 6
.RowSource = 'TRABAJOA'
.ColumnCount = 2
.Width = 250
.ColumnWidths = "50,200"
.left = MCOL(0,3)
.top = MROW(0,3)
.Visible = .T.
.SetFocus
ENDWITH
Funciona perfecto. Pero una vez que el usuario elija una opción del combobox quiero agregar el valor seleccionado al cuadro de edición y quiero remover el combobox. Supongo que debo hacerlo en el evento click del combo creado. Bien. Pero la pregunta:
¿dónde coloco el código del evento click del combo que acabo de crear?. Dentro del mismo evento en que creo el objeto me da error.
Agradezco cualquier ayuda y disculpen si la pregunta es demasiado tonta.
Saludos cordiales
Manuel Tovar
Barranquilla - COLOMBIA
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only