Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Array in Listbox
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Array in Listbox
Divers
Thread ID:
00746966
Message ID:
00746966
Vues:
52
I am populating a ListBox with an array, but I can only get either 1 or 2 rows to appear in the listbox, but not the 3rd or 4th row. Anyone have a clue what might be wrong?

If I set DIMENSION THISFORM._myrptarray(1,2) then just the first row appears.
If I set DIMENSION THISFORM._myrptarray(2,2) the 2nd row appears. However, DIMENSION THISFORM._myrptarray(3,2) or DIMENSION THISFORM._myrptarray(4,2) only gives me the first two rows.

The array is:
DIMENSION THISFORM._myrptarray(4,2)
THISFORM._myrptarray(1,1) = '1st Listings'
THISFORM._myrptarray(1,2) = 'LIST1'
THISFORM._myrptarray(2,1) = '2nd Listing'
THISFORM._myrptarray(2,2) = 'LIST2'
THISFORM._myrptarray(3,1) = '3rd Listing'
THISFORM._myrptarray(3,2) = 'LIST3'
THISFORM._myrptarray(4,1) = '4th Listing'
THISFORM._myrptarray(4,2) = 'LIST4'

THISFORM.pfgReportFrame.Page1.Lstlistboxcustom.COLUMNCOUNT  = 1
THISFORM.pfgReportFrame.Page1.Lstlistboxcustom.ROWSOURCE = "THISFORM._myrptarray"
THISFORM.pfgReportFrame.Page1.Lstlistboxcustom.ROWSOURCETYPE = 5
THISFORM.pfgReportFrame.Page1.Lstlistboxcustom.LISTINDEX = 1
Mel Cummings
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform