Highlighted
Super Contributor.
Super Contributor.
1385 views

Checing for type in Visual COBOL

Jump to solution

I'm converting this C# statement to COBOL:

 if (view.FocusedColumn.FieldName == "CityCode" && view.ActiveEditor is DevExpress.XtraEditors.LookUpEdit)

For the COBOL statement, I'm using:

if view::FocusedColumn::FieldName = "CityCode" and view::ActiveFilter = type Devexpress.XtraEditors.LookupEdit

I get an error on "view::ActiveFilter = type Devexpress.XtraEditors.LookupEdit".  LookuEdit is a class.  How do I check for the ActiveFilter's type ?

Phil Levin

0 Likes
1 Solution

Accepted Solutions
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: Checing for type in Visual COBOL

Jump to solution

Hi Phil, you should be able to do:

if view::FocusedColumn::FieldName = "CityCode" and view::ActiveFilter instance of type Devexpress.XtraEditors.LookupEdit

Robert.

View solution in original post

0 Likes
2 Replies
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: Checing for type in Visual COBOL

Jump to solution

Hi Phil, you should be able to do:

if view::FocusedColumn::FieldName = "CityCode" and view::ActiveFilter instance of type Devexpress.XtraEditors.LookupEdit

Robert.

View solution in original post

0 Likes
Highlighted
Super Contributor.
Super Contributor.

RE: Checing for type in Visual COBOL

Jump to solution

Thanks, that handled it.

Phil Levin

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.