ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

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
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
Handling a Link control through programming (Page)
Overview
WEBDEV allows you to handle a Link control through programming. 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:
LINK_Email.Caption = "Write to me directly"
Remark: If the option "..Value represents the link URL" is unchecked ("Details" tab of the link description), the link caption can also be returned by Value.
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:
LINK_Email.URL = "address@laposte.net"
Remark: If "..Value represents the URL of the link" is checked ("Details" tab of the link description), the URL of the link can also be returned by Value.
See also
Minimum version required
  • Version 9
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help