WR GET HYPERLINK
version 6.7
WR GET HYPERLINK (area; linkType; urlStyle; linkLabel; linkContent; methodRef)
Parameter | Type | Description | |
area | Longint | 4D Write area | |
linkType | Integer | Hyperlink type: 0 = Method, 1 = URL, | |
2 = 4D Write Document | |||
urlStyle | Integer | URL appearance: 1 = Default style, | |
0 = Custom style | |||
linkLabel | Text | Link's visible text (View/Values mode) | |
linkContent | Text | Hyperlink value | |
methodRef | Longint | Value for $3, 3rd parameter of the method | |
(if the link type is Method) |
Description
The WR GET HYPERLINK command returns the properties of the selected hyperlink within area.
linkType
• If the link is a 4D Method type, linkType returns 0.
• If the link is a URL type, linkType returns 1.
• If the link is a Document type, linkType returns 2.
urlStyle
• If the link style is set to the default, urlStyle returns 1.
• If the link style is customized, urlStyle returns 0. In this case, you can use the WR GET TEXT PROPERTY command for style information.
linkLabel
linkLabel returns the link's visible text (in View/Values mode).
linkContent
linkContent returns the hypertext value, in other words:
• for a 4D Method type link, the name of the method,
• for a URL type link, the complete URL,
• for a Document type link, the complete document path.
methodRef
methodRef returns the value put in the called method (if the link is a 4D Method type).
To select hyperlinks contained in a 4D Write document, you should use the WR Count(Area;wr nb hyperlinks) command and then make a loop for WR SELECT(Area;12;$loop).
See Also