Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Cecil Champenois
  Where is Cecil Champenois?
 Little Elm
 Texas - United States
 Cecil Champenois
 Tags
Subject: Default Choice of Indexes in ComboBox
Thread ID: 373713 Message ID: 373713 # Views: 52 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Forms
Date: Monday, March 25, 2013 9:48:19 PM         
   


The INDEX DEFAULT in the Search ComboBox which is set in the LOAD Event of the form, does not display when the form renders. The default is "FULL KEY". WHy does this Index Key not display in the ComboBox?

* Load Event:
* Indexes for ComboBox DropDown List.
WITH ThisForm
	.aSearchBy[1,1]="FULL_KEY"
	.aSearchBy[1,2]="GrpID+PlanKey+Class+Mbr_Code+Carr_Pln"
	.aSearchBy[2,1]="GRPID"
	.aSearchBy[2,2]="GrpID"
	.aSearchBy[3,1]="EMP_ID"
	.aSearchBy[3,2]="Emp_ID"
	.aSearchBy[4,1]="CARR_PLN"
	.aSearchBy[4,2]="Carr_Pln"
	.aSearchBy[5,1]="PRDCT_KEY"
	.aSearchBy[5,2]="Carr+GrpID+PlanKey+Lob_Cd"
	.aSearchBy[6,1]="PLANKEY"
	.aSearchBy[6,2]="PlanKey"
ENDWITH


The RowSource of the ComboBox is:
ThisForm.aSearchBy

RowSourceType:
5 - Array

BoundColumn = 1
BoundTo = .F.

aSearchBy[6,2] is .F. in the Property sheet initially.

Cecil Champenois, Jr.

ENTIRE THREAD

Default Choice of Indexes in ComboBox Posted by Cecil Champenois @ 3/25/2013 9:48:19 PM
RE: Default Choice of Indexes in ComboBox Posted by Borislav Borissov @ 3/25/2013 10:32:47 PM
RE: Default Choice of Indexes in ComboBox Posted by Anders Altberg @ 3/25/2013 10:33:52 PM