Builds a sequence of characters used to specify whether the text that follows the call to this function is in bold or not.
Remark: The entire text written after the function is affected.
// Display the title "WINDEV, #1 in France." in the next window
NextTitle(gFontBold() + "WINDEV" + gFontBold(False) + ", #1 in France.")
// Displays "WINDEV, #1 in France." in the title of the WIN_NextWindow window
<Result> = gFontBold([<Bold>])
<Result>: Character string
Sequence of characters defining whether the text must be written in bold or not.
This sequence of characters is not interpreted by the controls in WEBDEV. This function can be used to format the string returned by a WEBDEV Webservice consumed by a WINDEV or WINDEV Mobile application.
<Bold>: Optional boolean
- True (by default) if the text that follows gFontBold should be bold,
- False otherwise.
- The default font is restored after the call to the gFontXXX functions.
- All the other characteristics of the font are kept (italics, etc.).
- If the "bold" attribute is enabled in the style of the element to which the graphic string is assigned, a call to gFontBold with <Bold> set to False will not allow you to disable this attribute.