TSQLHighlighter.SQLKeywords property
PlusMemo Help Send comments on this topic.
TSQLHighlighter.SQLKeywords property

Glossary Item Box

 

Applies to

TSQLHighlighter component

 

Declaration

property SQLKeywords: THighlightInfo;

 

Description

This property is used to change the formatting of all SQL keywords together.  SQL keywords are the reserved words of the SQL language syntax, like add, all, char, if, else.

 

The default formatting characteristics for SQLKeywords are bold style, transparent background and default text color.

 

It is also possible to change the highlighting characteristic of each individual keyword at design time by way of property KeywordsOvr.  The individual keyword characteristics applied there are lost when making assignments to the corresponding SQLeywords properties. 

 

You can change properties of SQLKeywords at design time or at run time.  If you make assignments to them at run time, call TPlusMemo.ReApplyKeywords for the change to take effect immediately for existing text.  Otherwise, only subsequent editing operations will take account of the new highlighting attributes.  When making changes at design time, a confirmation dialog will ask if it is correct to reset the individual keyword characteristics if some of them have been set.