I thought this worked, but it does not
Jeff Harrison
Jeff.Harrison at Epixweb.com
Mon Jun 14 10:18:29 PDT 2004
Hmm, I just got bitten by the total function again. I thought that you
could use this function to total up different things based on a condition,
but it did not work the way I expected. Here is some sample processing and
data that demonstrates this.
Data:
Field1(30,*) Field6(3,.0) Field7(3,.0)
"T" "1" "2"
"X" "1" "2"
Processing:
:1 eq "T":aa=tot(6):
:1 ne "T":aa=tot(7):
::end:
@wgt:::
::msgbox "aa="<aa:
::end:
::aa(3,.0):
The msgbox function shows aa as "2", although I would expect it to be "3"
Is this a feature? Aren't you supposed to be able to do this?
Jeff Harrison
jeff.harrison at epixweb.com
Author of JHExport and JHImport - The fastest and easiest ways to generate
code for filepro exports and imports. Demos available upon request.
More information about the Filepro-list
mailing list