I am in the process of building a new building block.
I use:
This seems to produce no text in generated code.
I use:
CODE:
public override void GenerateVarCode() { VarCode.Add("MyFancyVariableCode()"); base.GenerateVarCode();[ }
This seems to produce no text in generated code.
Rename
Always works for me.
Call the base method first. The first thing it does is clear the VarCode list.
Call the base method first. The first thing it does is clear the VarCode list.
Perhaps you need to call RegisterVariable() in Initialize with the variable name you're trying with VarCode.Add()?
QUOTE:
The first thing it does is clear the VarCode list.
Ok, this is a good explanation.
It is inconsistent with the other Generate*Code() routines however. These allow me to add some code *before* the "base" code appears - sometimes useful...
Your Response
Post
Edit Post
Login is required