Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combo Boxes
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Combo Boxes
Miscellaneous
Thread ID:
00236835
Message ID:
00236835
Views:
50
Way back when I was starting out in vfp I found I had problems getting combo boxes to display the correct data so made the gotfocus() method look like this.

this.rowsourceType = 3
this.rowsource = lcSqlQuery + "into cursor cSql"
this.value = table.fieldvalue
this.displayvalue = Lookup( cSql.display, this.value, cSql.Id)

if empty(this.displayvalue)
*// put in the default values
endif

I've tried to make this as readable as possible. Is this a correct approach or have my initial problems led me off in the wrong direction?

Sarah
Sarah King
pcpropertymanager.com
Next
Reply
Map
View

Click here to load this message in the networking platform