Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What is the Limit to the Size of the Listbox Picture Array?
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro Beta
Titre:
What is the Limit to the Size of the Listbox Picture Array?
Divers
Thread ID:
00967561
Message ID:
00967561
Vues:
61
Hi

Does anyone know what the limit is for the size of the Picture Array associated with a listbox. It appears to me that there is some kind of limit despite the fact that the listbox can be bound to an array of thousands of items.

I tried loading a listbox with 2100 items each with a picture but the picture stops showing after the 500th item. In fact when I am loading the list everything works fine until I hit the 501st item. Then the pictures all disappear even on the 1st 500 items that had pictures.

It would be nice if I could find a way to have a picture on every item even if the array had tens of thousands of items. I am not proposing this is the best use of a listbox with this many items but I just want to ensure that the limits work with all aspects of the listbox.

Thanks
Simon

P.S. On further investigation I found that the following code works correctly:
With myListBox
   Select myTable
   ln1=0
   Scan 
      ln1=ln1+1
      .AddItem(myTable.ID,ln1,3)
      .List(ln1,2)=This.SetListText()
      .Picture(ln1)=This.SetListPicture()
   EndScan
   .ListIndex=1
EndWith
However, this code fails at the 501st item:
With myListBox
      Dimension .RowSourceArray(Reccount(),3)
      .RowSourceType=5
      .RowSource="This.RowSourceArray"
      Select MyTable
      Scan
         ln1=ln1+1
         .RowSourceArray(ln1,1)=""
         .RowSourceArray(ln1,3)=myTable.ID
         .RowSourceArray(ln1,2)=This.SetListText()
         .Picture(ln1)=This.SetListPicture()
      EndScan
      Dimension .RowSourceArray(Max(ln1,1),3)
      .Requery
EndWith
Simon White
dCipher Computing
Répondre
Fil
Voir

Click here to load this message in the networking platform