Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combobox controlsource problem
Message
From
27/06/2008 10:21:29
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Combobox controlsource problem
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01327241
Message ID:
01327241
Views:
52
Here is a sample of my code:
WITH .cboDefects
.RowSource = 'curSecondDefects'
.ControlSource = 'curItemData.defect_id'
.Refresh()
ENDWITH


Cursor "curItemData" is created before that code runs. Everything is fine for a first time. Second time I run this code I am getting an error:
Alias 'CURITEMDATA' is not found. ....cbodefects.ControlSource 0

I tried to disconnect cboDefects from data before curItemData" is recreated:
WITH .cboDefects
.RowSource = ''
.ControlSource = ''
.Refresh()
ENDWITH

Still the same error.
What's interesting that I cannot reproduce the errror in the Debugger.

Thanks for help.
Next
Reply
Map
View

Click here to load this message in the networking platform