Abrir db-Combo Automatico

Post Reply
User avatar
VitalJavier
Posts: 249
Joined: Mon Jun 10, 2013 6:40 pm
Has thanked: 2 times
Been thanked: 1 time

Abrir db-Combo Automatico

Post by VitalJavier »

Buen día
Saludando todos

Estoy ocupando un DbCombo y necesito hacer algo que me pidieron
Que en la lectura del combo, al llevar 3 letras/numero tecleados
el combo se abra automáticamente

Se podrá??

Saludos a todos
User avatar
Antonio Linares
Site Admin
Posts: 42854
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 185 times
Been thanked: 124 times
Contact:

Re: Abrir db-Combo Automatico

Post by Antonio Linares »

Prueba así:

oDbCombo:bKeyChar := { || If( Len( oDbCombo:cSearchKey ) == 3, oDbCombo:Open(),) }
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
VitalJavier
Posts: 249
Joined: Mon Jun 10, 2013 6:40 pm
Has thanked: 2 times
Been thanked: 1 time

Re: Abrir db-Combo Automatico

Post by VitalJavier »

Antonio, gracias por tu tiempo

Asi lo manejo y puse lo que me dijiste, pero no funciona

Code: Select all | Expand

REDEFINE DBCOMBO  oGet[02] Var oDbf:NOMBRE ID 102 OF oDlg1 ALIAS "MARCAS" ItemField "DESCRIPCION" ListField "DESCRIPCION" UPDATE 
	oGet[02]:oFont := aLetras[03]
	oGet[02]:bKeyChar := { || If( Len( oGet[02]:cSearchKey ) == 3, oGet[02]:Open(),) }
Saludos.
Post Reply