Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Progressbar
Message
 
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Environment versions
Visual FoxPro:
VFP 6
OS:
Windows '98
Network:
Windows 98
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01014147
Message ID:
01014218
Views:
20
>I know from my own expirience how hard is to change mindset from procedural style of programming to using queries but result worth it.
>
>>Now here we can have a glimpse of pure beauty. About half as many lines as the original code (counting the single SELECT statement as several lines), and much easier to follow.
>>
>>>Hi Hilmar,
>>>
>>>You're correct. I forgot that processing was for multiple dates.
SELECT date, SUM(dr_amount) AS debit, SUM(cr_amount) AS credit ;
>>>	FROM vouchers ;
>>>	WHERE acc_code = m.acc_code1 AND  date <= m.t_date1 ;
>>>	GROUP BY date ;
>>>	INTO CURSOR crsSums
>>>
>>>SELECT 	cash_f
>>>APPEND FROM ( DBF("crsSums") )
>>>
I have a form
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform