This representation allows up to 25 groups and 40 sections of a given type, although Crystal Reports itself has no such limitations.
Function PE_SECTION_CODE(sectionType As Integer, groupN As Integer,
sectionN As Integer) As Integer
PE_SECTION_CODE = (((sectionType) * 1000) + ((groupN) Mod 25) +
(((sectionN) Mod 40) * 25))
End Function
| Seagate Software IMG Holdings, Inc. http://www.seagatesoftware.com Support services: http://support.seagatesoftware.com |