4D Write v16

WR GET HYPERLINK

Home

 
4D Write v16
WR GET HYPERLINK

WR GET HYPERLINK 


 

WR GET HYPERLINK ( area ; linkType ; urlStyle ; linkLabel ; linkContent ; methodRef ) 
Parameter Type   Description
area  Longint in 4D Write area
linkType  Integer in Hyperlink type: 0 = Method, 1 = URL, 2 = 4D Write Document
urlStyle  Integer in URL appearance: 1 = Default style, 0 = Custom style
linkLabel  Text in Link’s visible text (View/Values mode)
linkContent  Text in Hyperlink value
methodRef  Longint in Value for $3, 3rd parameter of the method (if the link type is Method)

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 

WR INSERT HYPERLINK

 
PROPERTIES 

Product: 4D Write
Theme: WR Database Objects
Number: 89429

 
HISTORY 

Created: 4D Write 6.7

 
ARTICLE USAGE

4D Write Language ( 4D Write v16)