Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
List box.
Message
De
20/08/2001 17:36:30
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
List box.
Divers
Thread ID:
00546465
Message ID:
00546465
Vues:
44
I have craeted a mover form that uses two list boxs, one to hold fields to select and another to store the fields the user selects. The problem is I have a button that lets the user chose all fields the code is as below:

WITH THISFORM
FOR I = 1 TO .lstSelect.LISTCOUNT
.mnSelectedItems = .mnSelectedItems+1
.lstSelected.additem(.lstSelect.value)
.lstSelect.removeitem(.lstSelect.topitemid)
ENDFOR
ENDWITH

The problem is the removeitem list is blowing up telling me I have an invalid count.

Two questions:
1.) Is there a better way to do this.
2.) Can the program choose a filed in the select listbox when the program activates?
Like a select on activate!!!
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform