>>In a dynamic* expression this always refer to the grid itself.
>>Cetin
>>
>
>Yes, I know that, but it didn't look like it was used in this way in the original expression.
We may need a wiki topic about the context in which code runs. We have several cases when the called code may see things differently than the calling code, or we even don't have the caller.
Some of these weird contexts may be:
- On Key Label do xxx - xxx executes in current data session, and has no clue about thisform, this, and doesn't even know which form is active until it gets a reference to it. Knows no variables but the public ones
- execscript() - this should run in the current datasession, may see caller's private( variable)s
- snippets called from various points in the menu system (on pad, on bar, set skip to {function call}, setup/cleanup code), or in the rightclick menus
- function call in a sql column
- function call in dynamic properties of grid's columns
- snippets in a report (band entry/exit, DE code)
- trigger code
Did I miss anything?