LPARAMETERS nKeyCode, nShiftAltCtrl IF nKeyCode = 13 THEN && Enter lExists = .F. FOR i = 1 TO this.ListCount IF this.ListItem(i) = ALLTRIM(This.DisplayValue) lExists = .T. EXIT ENDIF ENDFOR IF NOT lExists this.AddItem(This.DisplayValue) ENDIF thisform.oWeb.Navigate(This.DisplayValue) ENDIF>
>IF nKeyCode = 13 THEN && Enter > lExists = .F. > FOR i = 1 TO this.ListCount > IF this.ListItem(i) = ALLTRIM(this.Text) > lExists = .T. > ENDIF > ENDFOR > IF NOT lExists > this.AddItem(this.Text) > ENDIF > thisform.oWeb.Navigate(this.Text) && this causes that the item is > && not active in the combobox > && combobox is empty >ENDIF >>