Highlighted
Absent Member.
Absent Member.
1387 views

Defining a #Region in Visual Cobol

Jump to solution

in Visual Basic to improve readability of code you can define regions like

#Region "Tab1_Instructions"

method-id read...

method-id write...

etc.

#End Region

which are collapsible.

Is there an equivalent in Visual Cobol? Just collapsing methods is no real alternative.

Tags (1)
0 Likes
2 Solutions

Accepted Solutions
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: Defining a #Region in Visual Cobol

Jump to solution

Sadly we don't support this feature at the moment - one of those things that keeps on getting mentioned but never actually implemented.  Definitely should be on the list for a future release though.  Probably in COBOL terms the syntax would be:

     $region "Tab1_Instruction"

View solution in original post

0 Likes
Highlighted
Absent Member.
Absent Member.

RE: Defining a #Region in Visual Cobol

Jump to solution

Perhaps worth mentioning that we do have automatic outlining in Visual Studio. New sections or methods will have a collapsible outline created as you type your code.

You might be interested in the *>> support - type this at the top of a method with the * starting in col 7 to generate intellisense documentation.

As Robert mentions, region support is something we've looked into before. Community postings like this one will help us prioritise these features for a future release.

Regards, Scot

View solution in original post

0 Likes
2 Replies
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: Defining a #Region in Visual Cobol

Jump to solution

Sadly we don't support this feature at the moment - one of those things that keeps on getting mentioned but never actually implemented.  Definitely should be on the list for a future release though.  Probably in COBOL terms the syntax would be:

     $region "Tab1_Instruction"

View solution in original post

0 Likes
Highlighted
Absent Member.
Absent Member.

RE: Defining a #Region in Visual Cobol

Jump to solution

Perhaps worth mentioning that we do have automatic outlining in Visual Studio. New sections or methods will have a collapsible outline created as you type your code.

You might be interested in the *>> support - type this at the top of a method with the * starting in col 7 to generate intellisense documentation.

As Robert mentions, region support is something we've looked into before. Community postings like this one will help us prioritise these features for a future release.

Regards, Scot

View solution in original post

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.