Article ID: 140298
Article Last Modified on 2/2/2005
MODIFY COMMAND countkid.prg
PARAMETERS cFldname, cCountry
cPassback=""
nPerposn=AT(".",cFldname)
cFldname=UPPER(SUBSTR(cFldname,nPerposn+1,LEN(cFldname)-nPerposn))
=AFIELDS(acFnames)
nAfldpos=ASUBSCRIPT(acFnames,ASCAN(acFnames,cFldname),1)
SELECT * FROM CUSTOMER WHERE COUNTRY=cCountry INTO ARRAY aMyray
anRow=ALEN(aMyray,1)
FOR nI=1 TO anRow
cPassback=cPassback+ALLTRIM(aMyray(nI,nAfldpos))+CHR(13)
ENDFOR
RETURN cPassback
IIF(nMycount<1,countkid("<fieldname>",Country),"")
NOTE: The "<fieldname>" should contain the name of the field you want to
print. For example, use Customer.Cust_id or Cust_id.
Value to Store = 0 Initial Value = 0 Reset = Customer.Country Calculation = Sum Check the Release after Report check box.
Additional query words: VFoxWin
Keywords: KB140298