Returns the number of periods in a frequency.
<HsvPeriods>.GetNumPeriodsInFrequency lFrequency, plNumPeriods
Long (ByVal). The ID of the frequency. To use the application’s base frequency, pass the ID returned by GetBaseFrequency. | |
The following example prints the number of periods in the application’s base frequency to Visual Basic’s Immediate window. GetBaseFrequency returns the ID of the application’s base frequency, and this ID is passed to GetNumPeriodsInFrequency.