PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
  • Current contact
  • Syntax that is using the Contact structure (before Android 2.0)
  • Required application feature
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Reads the contact found before the current contact in:
  • WINDEVWEBDEV - Server codeReports and Queries the address book of a Lotus Notes or Outlook messaging.
    Caution: This function cannot be used to read the previous contact found in the address book of an Outlook Express messaging.
  • Versions 16 and later
    Universal Windows 10 AppAndroidAndroid Widget iPhone/iPadIOS WidgetMac Catalyst the list of contacts on the device (Android, iPhone or iPad, Universal Windows).
    Warning
    From version 17 (69), the ContactPrevious function is available by compatibility. This function is not recommended if you are using Contact variables.
    New in version 16
    Universal Windows 10 AppAndroidAndroid Widget iPhone/iPadIOS WidgetMac Catalyst the list of contacts on the device (Android, iPhone or iPad, Universal Windows).
    Warning
    From version 17 (69), the ContactPrevious function is available by compatibility. This function is not recommended if you are using Contact variables.
    Universal Windows 10 AppAndroidAndroid Widget iPhone/iPadIOS WidgetMac Catalyst the list of contacts on the device (Android, iPhone or iPad, Universal Windows).
    Warning
    From version 17 (69), the ContactPrevious function is available by compatibility. This function is not recommended if you are using Contact variables.
When reading a contact, the data of this contact is updated in the Contact structure. To retrieve the data of the current contact, all you have to do is retrieve the values from the Contact structure.
Versions 16 and later
Android This function is now available for Android applications.
New in version 16
Android This function is now available for Android applications.
Android This function is now available for Android applications.
Versions 18 and later
Android Widget This function is now available in Android widget mode.
iPhone/iPad This function is now available for iPhone/iPad applications.
New in version 18
Android Widget This function is now available in Android widget mode.
iPhone/iPad This function is now available for iPhone/iPad applications.
Android Widget This function is now available in Android widget mode.
iPhone/iPad This function is now available for iPhone/iPad applications.
Versions 22 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 22
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
WINDEVWEBDEV - Server codeReports and QueriesUser code (UMC)Ajax
// Ouverture d'une session Lotus Notes
IDSession is int
IDSession = EmailStartNotesSession("MotDePasse", "ServeurMars", ...
"mail/julie.nsf", "C:\Lotus Notes\julie.id")
// Lecture du dernier contact
ContactLast(IDSession)
// Ajout des contacts trouvés dans un champ Liste
WHILE mContact.Out = False
ListAdd(LISTE_ListeContact, mContact.Name + TAB + mContact.FirstName)
ContactPrevious(IDSession)
END
Syntax
WINDEVWEBDEV - Server codeReports and QueriesUser code (UMC)Ajax

Reading the previous contact in the Lotus Notes or Outlook messaging Hide the details

<Result> = ContactPrevious(<Session identifier>)
<Result>: Boolean
  • True if the previous contact was read,
  • False otherwise. To get the details of the error, use ErrorInfo with the errMessage constant.
<Session identifier>: Integer
Identifier of session to use. This identifier is returned by one of the following functions: EmailStartNotesSession, EmailStartOutlookSession, NotesOpenDatabase or OutlookStartSession.
Universal Windows 10 AppAndroidAndroid Widget iPhone/iPadIOS WidgetMac Catalyst
Versions 16 and later
Warning
From version 17 (69), this syntax is kept for backward compatibility.
New in version 16
Warning
From version 17 (69), this syntax is kept for backward compatibility.
Warning
From version 17 (69), this syntax is kept for backward compatibility.

Read the previous Contact in the device's Contact list (before Android 2.0, iPhone or iPad, Universal Windows) Hide the details

<Result> = ContactPrevious(<Type of contact> [, <Type of information>])
<Result>: Boolean
  • True if the previous contact was read,
  • False otherwise. To get the details of the error, use ErrorInfo with the errMessage constant.
<Type of contact>: Integer constant
Type of contact to use. By default, this parameter corresponds to the contactPhone constant.
<Type of information>: Integer constant (or combination of constants)
Specifies the information about the contact to fill in the Contact structure when reading the contact. For performance reasons, we recommend that you only ask for the information really required when browsing the contacts. The available constants are as follows:
contactInfoAddressStreet address of the contact (business and home)
contactInfoEmailEmail addresses of the contact
contactInfoGeneralName of the contacts and notes
contactInfoCompanyCompany and department of the contact
contactInfoPhonePhone number of the contact: desk, mobile, business and home fax
contactInfoAll
(Default value)
All the available information about the contact.

If this parameter is not specified, the Contact structure will be filled with the available information about the contact.
Universal Windows 10 App This parameter is not supported.
Remarks

Current contact

The mContact.Out variable is used to find out whether a current contact exists.
Versions 16 and later
Universal Windows 10 AppAndroidAndroid Widget iPhone/iPadIOS WidgetMac Catalyst

Syntax that is using the Contact structure (before Android 2.0)

Only the following members of the Contact structure will be taken into account when reading a contact:
  • mContact.Out
  • mContact.Name
    Contains the display name of the contact (for example: Paul Smith).
  • mContact.Notes
  • mContact.HomeAddress
    Contains the full home address (Street, city, zip, etc.).
  • mContact.HomePhone
  • mContact.HomeFax
  • mContact.MobilePhone
  • mContact.Company
  • mContact.Department
  • mContact.OfficeAddress
    Contains the full business address (Street, city, zip, etc.).
  • mContact.OfficePhone
  • mContact.OfficeFax
  • mContact.OfficeMobilePhone
  • mContact.OfficePager
  • mContact.Email
  • mContact.NbEmail
  • mContact.ID
New in version 16
Universal Windows 10 AppAndroidAndroid Widget iPhone/iPadIOS WidgetMac Catalyst

Syntax that is using the Contact structure (before Android 2.0)

Only the following members of the Contact structure will be taken into account when reading a contact:
  • mContact.Out
  • mContact.Name
    Contains the display name of the contact (for example: Paul Smith).
  • mContact.Notes
  • mContact.HomeAddress
    Contains the full home address (Street, city, zip, etc.).
  • mContact.HomePhone
  • mContact.HomeFax
  • mContact.MobilePhone
  • mContact.Company
  • mContact.Department
  • mContact.OfficeAddress
    Contains the full business address (Street, city, zip, etc.).
  • mContact.OfficePhone
  • mContact.OfficeFax
  • mContact.OfficeMobilePhone
  • mContact.OfficePager
  • mContact.Email
  • mContact.NbEmail
  • mContact.ID
Universal Windows 10 AppAndroidAndroid Widget iPhone/iPadIOS WidgetMac Catalyst

Syntax that is using the Contact structure (before Android 2.0)

Only the following members of the Contact structure will be taken into account when reading a contact:
  • mContact.Out
  • mContact.Name
    Contains the display name of the contact (for example: Paul Smith).
  • mContact.Notes
  • mContact.HomeAddress
    Contains the full home address (Street, city, zip, etc.).
  • mContact.HomePhone
  • mContact.HomeFax
  • mContact.MobilePhone
  • mContact.Company
  • mContact.Department
  • mContact.OfficeAddress
    Contains the full business address (Street, city, zip, etc.).
  • mContact.OfficePhone
  • mContact.OfficeFax
  • mContact.OfficeMobilePhone
  • mContact.OfficePager
  • mContact.Email
  • mContact.NbEmail
  • mContact.ID
Versions 22 and later
Universal Windows 10 App

Required application feature

When this function is used, an application feature is declared in the application generation wizard.
Required feature: Contacts
This feature allows the applications to access the contacts.
New in version 22
Universal Windows 10 App

Required application feature

When this function is used, an application feature is declared in the application generation wizard.
Required feature: Contacts
This feature allows the applications to access the contacts.
Universal Windows 10 App

Required application feature

When this function is used, an application feature is declared in the application generation wizard.
Required feature: Contacts
This feature allows the applications to access the contacts.
Component: wd270com.dll
Minimum version required
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment