Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Oh my gosh... I can't believe it!
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00465510
Message ID:
00466433
Vues:
10
>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:
I just wanted to thank you for your response. You were right on with your suggestion. We got it fixed in a minimum of time and without a lot of re-programming. Best regards from your friend in the USA.

John
John Fatte'

Life is beautiful!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform