Component Initialization - Runtime and Development Time

I have a number of visual composite components that I create that use similar / common "connect" methods that run internal tables, etc.

I can automate some connections to automatically connect at runtime. How can I say, at the component level, if the current state is runtime or development time?

+5
source share
1 answer

I think you want to check if a flag is present csDesigningin the component property ComponentState:

if csDesigning in ComponentState then
  // designtime
else
  // not designtime
+16
source

All Articles