Code: Select all | Expand
#include "fivewin.ch"
Static aItems
//----------------------------------------------------------------------------//
Function Main()
Local oDlg
Local oCbx
Local cVar
aItems := { 'UNO', 'DOS', 'TRES' }
Define Dialog oDlg Truepixel
@ 10, 10 ComboBox oCbx Var cVar Size 100, 150 Items aItems Of oDlg Pixel On Change( Muestrame( oCbx ) ) Style CBS_DROPDOWN
oCbx : lIncSearch := .t.
Activate Dialog oDlg
Return 0
//----------------------------------------------------------------------------//
Function Muestrame( oCbx )
? aItems[ oCbx : nAt ]
Return 0
Alguna idea ??? Muchas gracias
Saludos