Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Listbox Select All
Message
De
01/07/2000 11:26:57
 
 
À
30/06/2000 14:32:28
Mark Atherton
University of Ca Davis, Student Housing
Davis, Californie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00387235
Message ID:
00387341
Vues:
18
Hi Mark.

>> I need to show every item in my listbox as selected upon entry to the form. <<

The only way that I found to make this sort of thing work was to put the code in the ListBox's Refresh(). Add a custom property to the form called lFirstTime and set it to true in the property sheet. The, in the form's Activate, you put code like this:
IF This.lFirstTime
   This.lstWhatever.Refresh()
ELSE
   This.lFirstTime. .F.
ENDIF
<pre>

Code like this in the lstWhatever's refresh():
<pre>
IF ThisForm.lFirstTime
  FOR lnItem = 1 TO This.ListCount
    This.Selected[ lnItem ] = .T.
  ENDFOR
ENDIF
Marcia
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform