Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Fun with Combos...
Message
From
10/06/2003 18:13:28
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00798666
Message ID:
00798677
Views:
22
This message has been marked as a message which has helped to the initial question of the thread.
Wayne,

Look at boundTo property....

>Tell me why this is doing what it is doing?
>
>The combo based on the character is fine, the one based on the number is getting the ordinal item from the array.
>
>
>
>	PROCEDURE combo1.Init
>		DIMENSION thisform.cmbchoices(3,2)
>		thisform.cmbchoices(1,1) = "Display for 2"
>		thisform.cmbchoices(1,2) = 2
>		thisform.cmbchoices(2,1) = "Display for 1"
>		thisform.cmbchoices(2,2) = 1
>		thisform.cmbchoices(3,1) = "Display for 3"
>		thisform.cmbchoices(3,2) = 3
                this.boundTo = .t.
                this.value = 2  && defaults to 1st entry now....
>
>
>		this.RowSourceType= 5
>		this.RowSource="thisform.cmbchoices"
>
>		RETURN DODEFAULT()
>	ENDPROC
>
< snip >
>
Steve Gibson
Previous
Reply
Map
View

Click here to load this message in the networking platform