Skip to main content

Checing for type in Visual COBOL

  • September 27, 2014
  • 2 replies
  • 0 views

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 ?


#VisualCOBOLautoscalemodescreenresolution

2 replies

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 ?


#VisualCOBOLautoscalemodescreenresolution

Hi Phil, you should be able to do:

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

Robert.


  • September 29, 2014

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 ?


#VisualCOBOLautoscalemodescreenresolution

Thanks, that handled it.