LouShepherd0921
Programmer
- Mar 14, 2006
- 2
Hello all -
I'm developing an Excel Pivot Table app in Visual FoxPro 9 and so far, it's working out fine - with 1 exception.
I was reading that it is possible to roll up date fields into months, quarters, years etc with a VBA line like this:
PT.PivotFields("Balance Date").LabelRange.Group Start:=True,_
End:=True, Periods:=_
Array(False, False, False, True, True, True)
I understand that the ":=" signifies a named parameter, so in VFP9 I could write:
PT.PivotFields("Balance Date").LabelRange.Group.Start = .T.
PT.PivotFields("Balance Date").LabelRange.Group.End = .T.
BUT
How can I pass the Array() stuff? It keeps throwing errors.
Thanks,
Lou
I'm developing an Excel Pivot Table app in Visual FoxPro 9 and so far, it's working out fine - with 1 exception.
I was reading that it is possible to roll up date fields into months, quarters, years etc with a VBA line like this:
PT.PivotFields("Balance Date").LabelRange.Group Start:=True,_
End:=True, Periods:=_
Array(False, False, False, True, True, True)
I understand that the ":=" signifies a named parameter, so in VFP9 I could write:
PT.PivotFields("Balance Date").LabelRange.Group.Start = .T.
PT.PivotFields("Balance Date").LabelRange.Group.End = .T.
BUT
How can I pass the Array() stuff? It keeps throwing errors.
Thanks,
Lou