Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combobox value using empty string
Message
De
26/02/2009 15:20:04
 
 
À
26/02/2009 14:16:46
Mike Sue-Ping
Cambridge, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Application:
Desktop
Divers
Thread ID:
01384366
Message ID:
01384395
Vues:
93
This message has been marked as the solution to the initial question of the thread.
>I'm setting the properties of a dropdown list as follows:
>
>BoundCOlumn: 2
>BoundTo: .T.
>RowSource: None, ,E-mail,E,Paper,P,Other,O
>RowSourceType: 1-Value
>
>When I run the form, I set the dropdown list's value property to " " expecting to see the word "None". Instead I see an empty/blank selection. If I dropdown the list, I see the four choices plus an additional empty/blank value.
>
>If I set the value to "P", the dropdown will display "Paper". What do I need to do in this case to get the value to show "None"?
>
>TIA,
>Mike

this work:
PUBLIC oform1

oform1=NEWOBJECT("form1")
oform1.Show
RETURN


DEFINE CLASS form1 AS form


	Top = 0
	Left = 0
	DoCreate = .T.
	Caption = "Form1"
	Name = "Form1"


	ADD OBJECT combo1 AS combobox WITH ;
		BoundTo = .T., ;
		BoundColumn = 2, ;
		ColumnCount = 2, ;
		RowSourceType = 1, ;
		RowSource = "none,,B,1,CC,2,DD,3,FF,4", ;
		Value = "", ;
		Height = 24, ;
		Left = 96, ;
		Style = 2, ;
		Top = 24, ;
		Width = 156

ENDDEFINE
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform