| |
 |
SWAPI_GetMaxCountryID
This function retrieves the maximum possible value of the country ID.
Syntax
| Microsoft Visual C++ |
| WORD __stdcall SWAPI_GetMaxCountryID(); |
|
| Borland Delphi |
| function SWAPI_GetMaxCountryID: WORD; stdcall; |
|
| Microsoft Visual Basic |
| Declare Function SWAPI_GetMaxCountryID Lib "swapimap.dll" () As Integer |
|
Parameters
This function has no parameters.
Return Value
The return value is the maximum possible value of the country ID.
Sample Code
| Microsoft Visual C++ |
int i, minCC, maxCC, cc; CString strText;
minCC = GetMinCountryID(); maxCC = GetMaxCountryID(); for (i = minCC; i < maxCC; i++ ) { strText.Format(TEXT("%s"), CountryIDToCountryCode(i)); lstCodes.InsertItem(i, strText); } |
|
| Borland Delphi |
var CountryID: WORD; CountryCode: string; begin SetLength(CountryCode, 2); for CountryID := SWAPI_GetMinCountryID to SWAPI_GetMaxCountryID do begin SWAPI_CountryIDToCountryCode(CountryID, Pointer(CountryCode), 2); Memo1.Lines.Add(CountryCode); end; end; |
|
| Microsoft Visual Basic |
Dim res As String * 2 For CountryID = SWAPI_GetMinCountryID() to SWAPI_GetMaxCountryID() i = SWAPI_CountryIDToCountryCode(CountryID, res, 2) CountryCode = Mid$(res, 1, i) Memo1.Lines.Add(CountryCode) Next |
|
Defined In
| Microsoft Visual C++ |
| SWAPIMap.h, SWAPIMap.cpp |
|
| Borland Delphi |
| SWAPIMap.pas |
|
| Microsoft Visual Basic |
| SWAPIMap.bas |
|
See Also
SWAPI_GetMinCountryID
Copyright © 2006-2008, TamoSoft
|