Posted 21 years ago
by Jan van de Pol

Hi All,
Currently I'm implementing a custom expression language into my application. This expression syntax consist of static keyword and operators and dynamically created datasource references. A datasourcereference will always be preceeded by the '@' symbol. The following would be a valid syntax:
IIF( @MyTable.MyField = "MyValue", "OK", "Not the expected value" )
Where
IIF is a function
@MyTable.MyField is a dynamically datasource reference
Now I want to use intelliprompt functionality for 2 goals:
1) Code completion: When I type the "I" and press CTRL-SHIFT-SPACEBAR it should look for all keywords starting with I and present them in dropdown list or if only one it should be inserted immediatly. Very much similar to VS.NET 2003.
2) Dynamic Intelliprompt. At entering the '@' sign a dropdown list must appear with all (previously at runtime configured) datasources. Pressing the "." symbol after a valid datasource must show a dropdown list with all fieldnames.
Has anyone an idea on how to implement those two goals into one editor? I managed to achieve (a part of) goal 2 by clearing the memberlist of the intelliprompt object and fill it again within the trigger event. But I'm not quite sure if this is the right way to go...
Thanks in advance for any comments,
Jan van de Pol
Currently I'm implementing a custom expression language into my application. This expression syntax consist of static keyword and operators and dynamically created datasource references. A datasourcereference will always be preceeded by the '@' symbol. The following would be a valid syntax:
IIF( @MyTable.MyField = "MyValue", "OK", "Not the expected value" )
Where
IIF is a function
@MyTable.MyField is a dynamically datasource reference
Now I want to use intelliprompt functionality for 2 goals:
1) Code completion: When I type the "I" and press CTRL-SHIFT-SPACEBAR it should look for all keywords starting with I and present them in dropdown list or if only one it should be inserted immediatly. Very much similar to VS.NET 2003.
2) Dynamic Intelliprompt. At entering the '@' sign a dropdown list must appear with all (previously at runtime configured) datasources. Pressing the "." symbol after a valid datasource must show a dropdown list with all fieldnames.
Has anyone an idea on how to implement those two goals into one editor? I managed to achieve (a part of) goal 2 by clearing the memberlist of the intelliprompt object and fill it again within the trigger event. But I'm not quite sure if this is the right way to go...
Thanks in advance for any comments,
Jan van de Pol