Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Brainless display form
Message
From
26/08/2011 07:03:28
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
26/08/2011 00:22:43
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Miscellaneous
Thread ID:
01521847
Message ID:
01521857
Views:
81
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform