Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combo box just won't keep hand entered text
Message
From
24/02/2005 04:14:57
Aaron K. Y. Chu
Health & Care Co. Ltd.
Hong Kong, Hong Kong
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00987581
Message ID:
00989995
Views:
30
What I do is set the CBO to Alias, rather than field, I don't know it is a bug, or not, the same error generated if it is rowsourcetype=6

it is only one time thing, you don't need to add it to your tables... however, in case you need to add them, I will do it in LostFocus()
IF this.listindex = 0 OR !EMPTY(this.displayvalue)
   cValue = alltrim(this.displayvalue)
   this.value = cValue
   LOCATE FOR cField = cValue in tableA
   IF !FOUND()
      INSERT tableA () Values ()
   ENDIF
ENDIF
That's what I do in a form/grid
Check it out
Best regards,

Aaron Chu

********************************************************

Working with Visual FoxPro is a lot of FUN!

********************************************************
Previous
Reply
Map
View

Click here to load this message in the networking platform