Comments

Comments are used to explain various code parts. Fore uses single line (//...), multiline ({...}), and XML comments (/// <summary>.../// </summary>). Comments do not affect the meaning of the program and are not used by compiler.

XML comments can be used for documenting various code blocks, for example, procedures/functions/classes, and so on. Along with the <summary> tag, one can specify any other tags, for example, HTML markup tags or custom tags that will allow for getting an XML structure of comment in the required format. Values of comments can be obtained in application code using the XMLDocumentation property of the IForeClass, IForeProperty, IForeSub interfaces.

//  example of single line comment
{
    example of
    multiline
    comment
}
{  multiline comment located in one line  }

/// <summary>
/// Comment for the Test procedure
/// </summary>
Sub Test;
Begin
    
End Sub Test;

See also:

Fore Language Guide | Constants | Variables