Skip to main content

PCMSNumRegions

Syntax

int PCMSNumRegions(PCMServerID serv)

Parameters

PCMServerID serv The PC*Miler server ID.

Description

Gets the number of regions in the active data set.

Return Values

Returns the number of regions.

Sample Code

int nRegions = PCMSNumRegions(server);
for (int iRegion = 0; iRegion < nRegions; ++iRegion)
{
PCMSGetRegionName(server, iRegion, buf, BUFLEN);
printf(" %d) %s", iRegion, buf);
}

Supported Since: PC*Miler Connect 15 Category: Administration

Last updated July 8, 2025.