Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Brainless display form
Message
De
26/08/2011 07:03:28
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
26/08/2011 00:22:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Divers
Thread ID:
01521847
Message ID:
01521857
Vues:
80
>If the user chooses only (1), print lines type '00 '
>If the user chooses only (2), print lines type '01 '
>If the user chooses (1) AND (2), print lines type '00 ' AND '01' AND '011'

You should bind the checkboxes that your user clicks to some form properties, like .lIncludeDetails, lIncludeTotals, lIncludeSeparators... then in the code that reacts to the changes of these values,
lcList=""
select MyGridsAlias
if thisform.lIncludeDetails
   lclist=lclist+["00 ",]
endif

if thisform.lIncludeTotals
   lclist=lclist+["01 ",]
endif

if thisform.lIncludeSeparators
   lclist=lclist+["011",]
endif
lclist=trim(lcList, ",")
if empty(lcList)
   set filter to
else
   set filter to inlist(cFilter, &lcList)
endif
locate
Then refresh the grid.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform