PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Properties specific to the description of Address variables
  • Using the Address variables
  • Reinitialization
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
The Address type is used to handle the address of a location or the address of a person. An address is defined by a postal address (street, city, state, zip code, country) and/or a geographical position (latitude and longitude). The characteristics of this address can be defined and modified by several WLanguage properties.
Note: See Declaring a variable for more details.
Versions 18 and later
WINDEViPhone/iPad This type of variable is now available for the iPhone/iPad applications.
New in version 18
WINDEViPhone/iPad This type of variable is now available for the iPhone/iPad applications.
WINDEViPhone/iPad This type of variable is now available for the iPhone/iPad applications.
Versions 20 and later
WINDEVWindows This type of variable is now available for the WINDEV applications in Windows.
WEBDEV - Browser code This type of variable is now available in Browser code.
WEBDEV - Server codeWindowsLinux This type of variable is now available for the WEBDEV sites in Windows and in Linux.
PHP This type of variable is now available for the PHP WEBDEV sites.
New in version 20
WINDEVWindows This type of variable is now available for the WINDEV applications in Windows.
WEBDEV - Browser code This type of variable is now available in Browser code.
WEBDEV - Server codeWindowsLinux This type of variable is now available for the WEBDEV sites in Windows and in Linux.
PHP This type of variable is now available for the PHP WEBDEV sites.
WINDEVWindows This type of variable is now available for the WINDEV applications in Windows.
WEBDEV - Browser code This type of variable is now available in Browser code.
WEBDEV - Server codeWindowsLinux This type of variable is now available for the WEBDEV sites in Windows and in Linux.
PHP This type of variable is now available for the PHP WEBDEV sites.
Versions 21 and later
Universal Windows 10 App This type of variable is now available for the applications in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This type of variable is now available for the applications in Universal Windows 10 App mode.
Universal Windows 10 App This type of variable is now available for the applications in Universal Windows 10 App mode.
Example
MyAddress is Address
MyAddress..City = "Paris"
MyAddress..Country = "France"

// Centers the map displayed by the "MAP_Position" control from an address
MapDisplayPosition(MAP_Position, MyAddress)
Remarks

Properties specific to the description of Address variables

The following properties can be used to handle an Address variable:
Property nameType usedEffect
ZipCodeCharacter stringZip code of the address.
This property is optional.
Versions 18 and later
Android Label
New in version 18
Android Label
Android Label
Character stringLabel for the types of custom addresses (optional).
If ..Type does not correspond to the addressCustom constant, the value of this property will be ignored.
This property is mainly used to manage the contacts.
CountryCharacter stringName of the country. This property is optional.
PositiongeoPosition variableGeographical position of the address: latitude and longitude.
This property is optional.
If the geographical position is not specified, the ..PositionValid property of the geoPosition variable is set to False.If the geographical position is not specified, ..Position is set to NULL.
AdminAreaCharacter stringRegion associated with the address (state for an address in the USA, land for an address in Germany, ...).
This property is optional.
StreetCharacter stringName of the street, road or avenue.
This property is optional.
Versions 18 and later
Android Type
New in version 18
Android Type
Android Type
Integer constantType of address:
  • addressOther: other type of address.
  • addressWork: professional address (office).
  • addressHome: home address.
  • addressCustom: custom type corresponding to the value of ..Label.
This property is mainly used to manage the contacts.
CityCharacter stringName of city.
This property is optional.

Note: These properties can be used with one of the following syntaxes:
  • <Variable Name>..<Property Name>
  • <Variable Name>.<Property Name>

Using the Address variables

The Address variables are used by the following functions:
Versions 17 and later
geoGetAddress
New in version 17
geoGetAddress
geoGetAddress
Retrieves an address (or a list of addresses) corresponding to the description of a geographical location.
Versions 18 and later
MapAddItinerary
New in version 18
MapAddItinerary
MapAddItinerary
Adds an itinerary onto a Map control.
Versions 17 and later
MapDisplayPosition
New in version 17
MapDisplayPosition
MapDisplayPosition
Centers the map displayed in a Map control on a geographical position or on a specific location.
The Address variables are used by the following types of variables:
Versions 17 and later
Contact
New in version 17
Contact
Contact
The Contact type is used to define the advanced characteristics of a contact found in the phone book.

Reinitialization

To reinitialize the content of an Address variable, you have the ability to use VariableReset.
Related Examples:
WM Geo-localization Cross-platform examples (WINDEV Mobile): WM Geo-localization
[ + ] This example explains how to perform proximity searches with geolocalization:
- search around me
- search in a city, at a given address, or close to a specific address.
The results are displayed in a looper and in a map with markers.
Minimum required version
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment