HASLINKS Function (Record)

Determines whether a record contains any links.


Ok := Record.HASLINKS  


Type: Record

The record in the table for which you want to find the link.

Property Value/Return Value

Type: Boolean

true if the record contains at least one link; otherwise, false.


The link can be a link to a web site, a file stored on the local or on a remote computer, or a link to a Microsoft Dynamics NAV page.


The following code example retrieves record number 10000 from the Vendor table and stores it in the MyRecord variable. The HASLINKS function determines whether the record contains one or more links. Record number 10000 contains one link so the varHasLink variable displays Yes. This example requires that you create the following variables in the C/AL Globals window.

Variable name DataType Subtype
MyRecord Record Vendor
varHasLinks Boolean Not applicable

varHasLinks := MyRecord.HASLINKS;  
MESSAGE('Does this record have one or more links: %1', varHasLinks);  

See Also

Record Data Type