ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Control functions / WLanguage procedure
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
WLanguage procedure called by AddLink
Procedure ("Callback") called by AddLink.
Example
// == Global declarations of the window ==
arrLinkTarget is array of strings
// == Click on the Button control "Add a note" ==
LinkRank is int
Destination is string
 
// Asks for a note to associate with the link
IF Input("Enter a note associated with this link: ", Destination) = 1 THEN
 
// Stores the note in an array
LinkRank = Add(arrLinkTarget, Destination)
 
// Adds the link into the edit control
AddLink(EDT_Edit, EDT_Edit.Cursor, ...
EDT_Edit.CursorEnd, ClickOnLink, LinkRank)
END
// == ClickOnLink procedure ==
PROCEDURE ClickOnLink(LinkRank is int)
InfoBuild("The note associated with the %1 link is: %2", LinkRank, ...
arrLinkTarget[LinkRank])
Syntax
AddLink:Callback(<Procedure parameter>)
<Procedure parameter>: Variant
Parameter passed to the procedure when the link is clicked on. This parameter has been specified in the call syntax of AddLink.
Minimum version required
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 02/22/2023

Send a report | Local help