David Higgs
Programmer
I have the following code in my application which works as required.
Is there a way of COUNTing into my Dimension ARRAY wagi(10) instead of first storing it in wagi_count and then storing it into my Dimension ARRAY wagi(10) ?
Regards,
David.
Recreational Developer / End User of VFP.
Is there a way of COUNTing into my Dimension ARRAY wagi(10) instead of first storing it in wagi_count and then storing it into my Dimension ARRAY wagi(10) ?
Code:
PUBLIC ARRAY wagi(10)
SELECT COUNT(*) FROM csrWAGI_wkd where Date_160 > ctod("01-01-2017") INTO ARRAY wagi_count
STORE wagi_count TO wagi(1)
SELECT COUNT(*) FROM csrWAGI_wkd where Date_80 > ctod("01-01-2017") INTO ARRAY wagi_count
STORE wagi_count TO wagi(2)
SELECT COUNT(*) FROM csrWAGI_wkd where Date_60 > ctod("01-01-2017") INTO ARRAY wagi_count
STORE wagi_count TO wagi(3)
SELECT COUNT(*) FROM csrWAGI_wkd where Date_40 > ctod("01-01-2017") INTO ARRAY wagi_count
STORE wagi_count TO wagi(4)
Regards,
David.
Recreational Developer / End User of VFP.