Applies to: posted in the Clarion 10 group; the poster signs "C10".
Problem
In a report procedure the object is declared as ThisWindow CLASS(ReportManager). The poster wants to add a BYTE property (called MyVar) to that class and could not find an embed point where it goes.
Solution
- Simplest: declare the variable in the procedure's local data. One reply says everything in local data is also available inside the object's methods, so one method can set
LOC:MyVariableand another can read it. - The class properties dialog: a SoftVelocity reply names the path Button Actions, Tab Classes, Checkbox Derive, then the button New Class Properties, where any new property can be added; the neighbouring button adds methods. The poster said he would take that path.
- When the object must be handed to something outside the procedure and expose the new property there, write your own CLASS in your own INC and CLW pair, make it ABC compliant with
!ABCIncludeFile(ABC)at the top, and change the base class of the procedure to it.
Caveats
- By the reply's description the property added in step 2 is still just a local variable; only step 3 gives a real member visible to outside code.
- The thread did not report whether the dialog route worked for the poster.
- The step 3 description is a short outline, not a worked example.
Today (2026)
Likely unchanged for the local data route; the menu path of step 2 may have changed in current IDE versions. Not re-tested.
Sources: Richard I. (Feb 2019, the question), Ole H. (Feb 2019), Diego B. (SoftVelocity) in sv.clarion.clarion10.