Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing the rowsource of a combobox during active sessi
Message
From
29/10/2006 21:42:41
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01165371
Message ID:
01165413
Views:
13
Hi, Naomi,

Thanks very much for your code! Ultimately, I think it is the RowSource = "" (Unbind first) which I needed to do. I have enclosed my code below.

The object being named 'lccontrol' was an error, and should have been named locontrol.

The code:
** Naomi Nasonovski 30.10.06
locontrol=thisform.cmbfieldval
with loControl
	.RowSource = "" && Important, unbind first
	DO case
	case lcfield='cOpr'
	       .RowSourceType = 6
	       .RowSource = "Opr.op_Code"
	case lcfield='cgang'
	       .RowSourceType = 6
	       .RowSource = "Gang.gcode"
	ENDCASE
	.requery()
endwith
With best regards,

Steve
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform