Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Add a user entry into a combobox
Message
De
23/07/2001 16:12:59
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
 
 
À
22/07/2001 23:47:08
Henry Ravichander
RC Management Systems Inc.
Saskatchewan, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00533751
Message ID:
00534069
Vues:
12
>Thanks Nancy. Does this mean that I have to store the value the user entered into a table for it to be recalled through a select statement and then repopulate the combobox?
>
>Thanks again.
>
>- Ravi

Here's an example:
*~~ 01.15.99 nf 1: Added  .AND. ASC( this.displayvalue ) > 30 to beat the erroneous entry of a non-printable character when
*~~				   the list is closed via the down arrow.
IF TRIM(this.value) <> TRIM(this.displayValue) .AND. !EMPTY( this.displayValue ) .AND. ASC( this.displayvalue ) >= 30
	*!* Then we have a new value to add to the list
	this.additem( this.displayValue )
	
	REPLACE ( SUBSTR( this.controlSource, AT( '.', this.controlSource ) + 1 ) ) WITH this.DisplayValue IN ;
	        ( SUBSTR( this.controlSource, 1, AT( '.', this.controlSource ) - 1 ) )
ELSE
	RETURN .T.
ENDIF
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform