Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Can I get the value of the comment line in code?
For a given expression I want to be able to get the Value of the
"Comment"
or the value of the label? without knowing the column number.
Without knowing the column number or the label, how do you want to tell QV which expression to look for?
Because the expression can access the row above below. SO it can self reference.
But how can I get it's own Comment or Label?
I don't think there is a QV function to access these information within an expression.
You can duplicate the label / comment in the expression or reference the same source (e.g. a variable).
What do you want to do with these information in the expression, maybe there are some alternatives?
Unfortunately qv had not implemented an object-API within the gui so that a reference like the following would work:
me.ObjectID
me.Name
me.ParentID
me.Properties
...
In general you could get such informations per vbscript but it would be need a lot of efforts to build a stable solution with macro-triggers or the enabling of macro-functions within gui-objects. Beside them see: Macros are Bad.
Therefore you will need some workaround.
- Marcus