Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ListBox Using Array
Message
 
À
09/09/1997 15:22:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00049215
Message ID:
00049222
Vues:
66
>>I cannot figure this out for the life of me and I am sure I am missing something silly.
>>
>>I have a form with a pageframe containing 3 pages. On the first page is a set of checkboxes (within a container if that makes any difference).
>>
>>On page3 is a list box with a RowSourceType of 'Array' and a RowSource of 'solutions'. 'Solutions' is a public array declared in the load method of this form. This array is initially dimensioned with 1 element containing Space(1).
>>
>>When some checks one of the boxes on page1 the click method of that checkbox passes the caption of that checkbox to a method that adds this caption to the array (or replaces the first element with the caption if the element is = Space(1)).
>>
>>Now, the array is working fine and contains the values that I expect it to. The problem is that nothing is showing up in this list box. In the Activate method of page3 I have:
>> WITH THIS.listsol && Name of listbox is listsol
>> .requery()
>> .refresh()
>> ENDWITH
>>The form works fine but I get nothing showing in the listbox. I have done this many times before but the listbox was always on the form (without any pageframes or pages).
>>
>>Any ideas as to what I am doing wrong?
>>
>>TIA,
>>George
>
>If listboxes act anything like grids on pageframes, it will help to explicitly set the rowsource of the listbox in the activate event of the box's page. I know that grids (for whatever reason) lose their recordsource when flipping back and forth between pages.

Erik,
That seems to be it! Thanks a lot for the help. I would have NEVER figured that one out. Man, I have been working on this silly thing for 2 days...

George
Everything we see or seems
Is but a dream within a dream
- Edgar Allen Poe
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform