Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ListBox Using Array
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00049215
Message ID:
00049237
Vues:
60
George,

I think maybe you need to revise your WITH statement to *include* the pageframe and page.

Right now I would simply say the refresh and requery are happening, but to the wrong object.

Good luck,
Jim N

>>>Maybe I misunderstand how 'requery' is used. According to the docs:
>>>
>>>"Use the Requery method to ensure a control contains the most recent data. The Requery method requeries the RowSource property and updates the list with the new values."
>>>
>>>I interpreted this to mean that if elements are added to the array that using 'requery' would update the list. Am I interpreting this incorrectly? If so, what would I need to do to refresh the list?
>>
>>George,
>>
>>I don't have an answer for you, but I am having a similiar problem. I'm changing the properties of a listbox on the fly using a method which creates an array when a commandbutton is clicked. I know the array is being created, and the listbox contains the correct number of rows, but each row is blank. I get the same result whether or not I use REQUERY.
>>
>>If you are able to figure out your problem, please let me know. I'll do the same.
>>
>>AL
>Alan,
>Erik Moore came up with a solution that worked for me but I don't know if your problem is the same. Anyway, what he said to try was explicitly defining the rowsource on the Activate method.
>
>You can try redefining the RowSource each time you add an item to the array. Also try refreshing the entire form (if you are not already doing so). Let me know if this doesn't work.
>
>George
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform