Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Empty value for a ComboList
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01355394
Message ID:
01355399
Vues:
25
>Hi Gang,
>
>A quick question.
>
>I have a combobox on a form set up with Style of 2 (Combobox Dropdown List).
>
>I have the Rowsource Type as 6 (fields) and Rowsouce of discount.code,desc
>
>The discount.code has in the dropdown 6 values. None of them are blank.
>
>I would like to allow the user to have a blank value to choose from so they can always go back to a default blank value for the discount code ( No discount code).
>
>Any way to get this blank value to show up in the combolist (since it is Type 6) ?? Or am I stuck to using Type 0 or 1 ?

I figured it out...

**********************************************
In the comboboxlist INIT I placed
*Add values from discount.code and desc to this combo, and make sure we have a "blank" one to chose from at the beginning.
SELECT discount 
SET ORDER TO code
WITH This
	.AddListItem("  ")
	.AddListItem(SPACE(25),.NewItemId,2)
	SCAN
		.AddListItem(discount.code)
		.AddListItem(discount.desc,.NewItemId,2) 	
	ENDSCAN 
ENDWITH 
SELECT customer
**********************************************
Tommy Tillman A+ NetWork+ MCP
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform