ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / Developing an application or website / Controls, windows and pages / Controls: Available types / Link control
  • Overview
  • Finding out and modifying the caption (server code)
  • Retrieving and modifying the URL of the link (for a "mailto" link in server code)
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Manipulating Link controls programmatically (Page)
Overview
WEBDEV allows you to manipulate a Link control programmatically. To do so, use the variable of the Link control in the code.
The variable of the Link control corresponds to name of the control. A Link control is always a Text control.
Finding out and modifying the caption (server code)
To handle the caption of a Link control, use the Caption property.
For example, the following line of code modifies the caption of the LINK_Email control:
LIEN_Email.Libellé = "Ecrivez-moi directement"
Remark: If the "..Value represents the link URL" option is unchecked ("Detail" tab of the link description), the link label can also be known by the Value property.
Retrieving and modifying the URL of the link (for a "mailto" link in server code)
To handle the URL of a "MailTo" type Link control, simply use the URL property.
For example, the following line of code modifies the email address of the LINK_Email control:
LIEN_Email.URL = "adresse@laposte.net"
Remark: If the "..Value represents the link URL" option is checked ("Detail" tab of the link description), the link URL can also be known by the Value property.
See also
Minimum version required
  • Version 9
Comments
Click [Add] to post a comment

Last update: 09/21/2024

Send a report | Local help