Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Oh my gosh... I can't believe it!
Message
From
19/01/2001 04:05:33
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00465510
Message ID:
00465582
Views:
8
Hi!

It is not a spoil. VFP6 have a lot of new things, include new ways to handle internal events between controls etc. to speed up work. Probably this is related to such things as _VFP.AutoYield, control refreshing etc.

To be sure combobox refreshed after changes in its row source array, use combobox.requery.

If you change row source at all, do following in requery of combobox:

This.rowsource = ''
this.rowsourcetype = 0
* do query or some data preparations
this.rowsourcetype =
this.rowsource = 'whatever'

>A few months ago we updated our app to VFP6 from VFP5. A form used to add records has worked perfectly in VFP5 however, we suddenly found that the drop down combo boxes are not being updated as the user adds new records in our VFP6 version. I have verified that the code DID NOT change, but VFP6 will not update the array for the rowsource of the combo box. Here's a brief summary...
>
>Form Property:
>laac[1,1]
>
>Combo Box Rowsource:
>THISFORM.laac
>
>Combo Box RowType:
>array
>
>After adding each new record we do this:
>select distinct field1,field2 from file into thisform.laac
>
>If you drop down the combo box, it does NOT contain the most recently entered data into field1 and field2. HOWEVER, the array, thisform.laac, is properly updated.
>
>If I attempt to update the rowsource with:
>thisform.cboLAAC.rowsource = thisform.laac
>
>I end up with nothing in the drop down combo box. I've tried just refreshing the combo box, but nothing that worked in VFP5 seems to work in VFP6.
>
>Any and all suggestions are greatly appreciated! I really need to resolve this quickly since we have a number of users who are wondering what gives...
>
>Thanks.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform