I´ve created a List control which is populated with the data from a table.
The problem is that when the control is shown on the form, shows no data.
I have to click in the list to display the items.
Is there a way that a List control show the first item in its list when appears ?
Here goes a sample code:
**************************************************
*-- Form: _form1 (d:\winapp\app.vfp\raptoris\form4.scx)
*-- ParentClass: _form (c:\archivos de programa\microsoft visual studio\vfp98\ffc\_base.vcx)
*-- BaseClass: form
*-- Marca de hora: 04/27/00 10:41:04 PM
*
DEFINE CLASS _form1 AS _form
Height = 103
Width = 231
DoCreate = .T.
Name = "_form1"
ADD OBJECT cmdclose AS commandbutton WITH ;
Top = 48, ;
Left = 60, ;
Height = 27, ;
Width = 84, ;
Caption = "Close", ;
Name = "cmdClose"
ADD OBJECT lstempresa AS combobox WITH ;
BoundColumn = 2, ;
ColumnCount = 2, ;
ColumnWidths = "175,0", ;
RowSourceType = 6, ;
RowSource = "emp.emp_nombre,emp_id", ;
FirstElement = 1, ;
Height = 24, ;
ColumnLines = .F., ;
Left = 12, ;
NumberOfElements = 0, ;
Style = 2, ;
Top = 12, ;
Width = 192, ;
Name = "lstEmpresa"
PROCEDURE cmdclose.Click
Thisform.Release
ENDPROC
ENDDEFINE
*
*-- EndDefine: _form1
**************************************************