Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Brainless display form
Message
From
26/08/2011 00:22:43
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Brainless display form
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Miscellaneous
Thread ID:
01521847
Message ID:
01521847
Views:
162
Hi All:

I constructed a cursor as follows (All fields are character):
CFILTER         DATE      INVOICE      AMOUNT
00              2/1/11    1111          50.00
00              2/2/11    1112          60.00
00              2/3/11    1113          70.00
01              Feb Total               180.00
011
00              3/1/11    1114          80.00
00              3/2/11    1115          90.00
01              Mar Total               170.00
011
00              4/1/11    1116          20.00
00              4/9/11    1117          30.00
01              Apr Total               50.00
i.e. I have 3 types of lines detail, total and blank lines. I then call a form that will display all the fields of the cursor, except cFilter, in a grid.

I pass the form an array that will allow the init of the form to construct 2 checkboxes, (1) 'Detail Lines' and (2) 'Total Lines'.

I do not want any decision code in the form; I want all instructions to come from the calling program.

What is the most elegant way to tell the form:

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'

I'm simplyfying; there could be many more line types and many more combinations.

Thanks,

Yossi
Next
Reply
Map
View

Click here to load this message in the networking platform