Skip to main content

PCMSStateList

Syntax

int PCMSStateList(PCMServerID serv)

Parameters

PCMServerID serv – The PC*Miler server ID.

Description

Returns the number of U.S. states, Canadian provinces, Mexican estados, and Central American and Caribbean countries included in the North America region.

Return Values

The number of U.S. states, Canadian provinces, Mexican estados, and Central American and Caribbean countries included in the North America region.

Sample Code

Log_Pcmstest("Show State List: ");
int nStates = PCMSStateList(server);
for (int iState = 0; iState < nStates; ++iState)
{
  PCMSStateListItem(server, iState, buf, BUFLEN);
  Log_Pcmstest("  %d) %s", iState, buf);
}

Supported Since: PC*Miler Connect 20

Category: Administration

Last updated July 8, 2025.