Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ComboBox not refreshing
Message
From
03/11/2002 03:01:41
Vladimir Zhuravlev
Institute of the Physics of Earth,Russia
Moscow Region, Russia
 
 
To
02/11/2002 13:56:32
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00718185
Message ID:
00718258
Views:
14
This message has been marked as a message which has helped to the initial question of the thread.
>In valid event I add a value to my combobox and after that (still in the valid) I issue the following code
>
>this.Value = This.DisplayValue
>this.Requery()
>
>
Denis
You did not add anything at all
If the rowsourcetype=1
you have to use additem methid to add new item to box
Displayvalue and value are not neccesary same
For example in init of the combo you can write
this.additem('one')
this.additem('two')
etc
and this value=1
this gives correspondance of one displayvalue and value=1
Valid is not good for combo.
Try got focuss or something else
For example
in got focus you can write
this.additen('next')
this.requery()
this.displayvalue='next'
Best wishes, Vladimir

>What should I do to make this work?
MVP-2006-2011, PHD in Math and Physics ,
host of www.foxclub.ru,
VFP lector at Interface and Microinform companies
Head science researcher of VNIIA Rosatom.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform