Code Regions

Top  Previous  Next

 

!region <labelName>

<some source text>

!endregion

 

!region

Begins a foldable code region

labelName

An optional text description that displays when the code region is folded

!endregion

Terminates a foldable code region

 

A code region lets you specify a block of code that you can expand or collapse when viewing it in the Clarion# IDE.

 

Example:

 

Here is how a code region looks in the IDE:

Region Expanded

 

Region Folded