EControl Syntax Editor SDK
TCustomAutoCompletePopup.StartExpr Property

Specifies regular expression to test user input to activate code completion.

property StartExpr: ecString;

StartExpr allows defining more complex condition for starting auto-completion than using StartString property. 

StartExpr - is backward regular expression. I.e. when matching characters numerated in descending order. 

For example, it is required to test "." or "->" as start strings for starting completion. To test them next expression should be defined:

StartExpr := '\.|>-'

You may see that for testing "->" we used ">-" expression, because characters are tested in backward order. 

Auto-completion starts (with specified delay) if either StartExpr or StartString conditions are succeeded.

Copyright (c) 2004-2011. All rights reserved.
What do you think about this topic? Send feedback!