PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Required application feature
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
Finds a contact:
  • WINDEVWEBDEV - Server codeReports and Queries in the address book of a Lotus Notes or Outlook messaging.
    Caution: This function cannot be used to find a contact in the address book of an Outlook Express messaging.
  • Versions 16 and later
    AndroidAndroid Widget iPhone/iPadUniversal Windows 10 App in the list of contacts on the device (Android, iPhone or iPad, Universal Windows).
    Warning
    From version 17 (69), ContactSearch is available for backward compatibility. This function is not recommended if you are using Contact variables. In this case, we recommend that you use ContactList to find contacts.
    New in version 16
    AndroidAndroid Widget iPhone/iPadUniversal Windows 10 App in the list of contacts on the device (Android, iPhone or iPad, Universal Windows).
    Warning
    From version 17 (69), ContactSearch is available for backward compatibility. This function is not recommended if you are using Contact variables. In this case, we recommend that you use ContactList to find contacts.
    AndroidAndroid Widget iPhone/iPadUniversal Windows 10 App in the list of contacts on the device (Android, iPhone or iPad, Universal Windows).
    Warning
    From version 17 (69), ContactSearch is available for backward compatibility. This function is not recommended if you are using Contact variables. In this case, we recommend that you use ContactList to find contacts.
ContactSearch does not position on the sought contact.
Versions 16 and later
Android This function is now available for the Android applications.
New in version 16
Android This function is now available for the Android applications.
Android This function is now available for the 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 the 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 the iPhone/iPad applications.
Android Widget This function is now available in Android Widget mode.
iPhone/iPad This function is now available for the 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 QueriesAjaxUser code (UMC)
// Start a Lotus Notes session
SessionID is int
SessionID = EmailStartNotesSession("Password", "MarsServer", ....
"email/julia.nsf", "C:\Lotus Notes\julia.id")
...
// Find the contacts for the company named "Tames"
IF ContactSearch(SessionID, "Tames", mContactCompany) = True THEN
// Add the contacts found into a list
WHILE mContact.Out = False
ListAdd(LIST_ContactList, mContact.Name + TAB + mContact.FirstName)
ContactNext(SessionID)
END
ELSE
Info("No contact was found")
END
AndroidAndroid Widget iPhone/iPadUniversal Windows 10 App
// Find a name in the directory of contacts
// For example, find all the contacts containing "Vince"
// (the sought contact is handled by the mContact structure)
IF ContactSearch(contactPhone, "Vince", mContactLastName, True) = True THEN
// Add the contacts found into a list
WHILE mContact.Out = False
EDT_Text += mContact.Name + " - " + mContact.Company + ", "
ContactNext(contactPhone)
END
ELSE
EDT_Text = "No contact was found"
END
Syntax
WINDEVWEBDEV - Server codeReports and QueriesAjaxUser code (UMC)

Finding a contact in the Lotus Notes or Outlook messaging Hide the details

<Result> = ContactSearch(<Session Identifier> , <Sought Value 1> , <Type of Value 1> [, <Sought Value 2> [, <Type of Value 2>]])
<Result>: Boolean
  • True if one or more contacts correspond to the search,
  • False otherwise. To find out the error details, use ErrorInfo associated with the errMessage constant.
<Session Identifier>: Integer
Identifier of session to use. This identifier is returned by EmailStartNotesSession, EmailStartOutlookSession, NotesOpenDatabase or OutlookStartSession.
<Sought Value 1>: Type of sought value
First value to find.
<Type of Value 1>: Integer constant
Type of first value to find:
mContactEmailSearch performed in the emails of contacts
mContactLastNameSearch performed in the last names of contacts
mContactFirstNameSearch performed in the first names of contacts
mContactCompanySearch performed in the companies of contacts
<Sought Value 2>: Type of sought value, optional
Second value to find. If this parameter and <Type of Value 2> are not specified, the contact is sought according to <Value to Find 1>.
<Type of Value 2>: Optional Integer constant
Type of the second value to find:
mContactEmailSearch performed in the emails of contacts
mContactLastNameSearch performed in the last names of contacts
mContactFirstNameSearch performed in the first names of contacts
mContactCompanySearch performed in the companies of contacts
If this parameter and <Value to Find 2> are not specified, the contact is sought according to <Value to Find 1>.
AndroidAndroid Widget iPhone/iPadUniversal Windows 10 App
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.

Finding a contact in the list of contacts on the device (Android, iPhone, iPad, Universal Windows) Hide the details

<Result> = ContactSearch(<Type of Contact> , <Sought Value 1> , <Type of Value 1> [, <Sought Value 2> [, <Type of Value 2>]] [, <Type of Search>])
<Result>: Boolean
  • True if one or more contacts correspond to the search,
  • False otherwise. To find out the error details, use ErrorInfo associated with the errMessage constant.
<Type of Contact>: Integer constant
Type of contact to find. By default, this parameter corresponds to the contactPhone constant.
<Sought Value 1>: Type of sought value
First value to find.
<Type of Value 1>: Integer constant
Type of first value to find:
mContactEmailSearch performed in the emails of contacts.
mContactLastNameSearch performed in the display names of contacts.
mContactFirstNameSearch performed in the display names of contacts.
mContactCompanySearch performed in the companies of contacts.
<Sought Value 2>: Type of sought value, optional
Second value to find. If this parameter and <Type of Value 2> are not specified, the contact is sought according to <Value to Find 1>.
iPhone/iPadUniversal Windows 10 App This parameter is not available. The search cannot be performed on a second value.
<Type of Value 2>: Optional Integer constant
Type of the second value to find:
mContactEmailSearch performed in the emails of contacts.
mContactLastNameSearch performed in the display names of contacts.
mContactFirstNameSearch performed in the display names of contacts.
mContactCompanySearch performed in the companies of contacts.
If this parameter and <Value to Find 2> are not specified, the contact is sought according to <Value to Find 1>.
iPhone/iPadUniversal Windows 10 App This parameter is not available. The search cannot be performed on a second value.
<Type of Search>: Optional boolean
Type of search to perform:
  • True to perform a "Contains" search,
  • False (default value) to perform an exact-match search.
Remarks
Versions 22 and later
Universal Windows 10 App

Required application feature

The use of this function triggers the declaration of an application feature in the wizard for generating the application.
Required feature: Contacts
This feature allows the applications to access the contacts.
New in version 22
Universal Windows 10 App

Required application feature

The use of this function triggers the declaration of an application feature in the wizard for generating the application.
Required feature: Contacts
This feature allows the applications to access the contacts.
Universal Windows 10 App

Required application feature

The use of this function triggers the declaration of an application feature in the wizard for generating the application.
Required feature: Contacts
This feature allows the applications to access the contacts.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230com.dll
Android wd230android.jar
Minimum required version
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment