Hi Bernd, casts are done in COBOL using the syntax AS type-specifier. I've created the following to demonstrate how this might be written in COBOL. The three lines in method m, correspond to the original three C# lines, the rest is just framework around them... $set ilref"presentationframework.dll" $set ilusing"System.Windows.Data" class-id a. method-id m. declare options as list[string] set self::FindResource("cvsOptions") as type CollectionViewSource::Source to options declare GridList as list[type WPFGridZeilen] end method. method-id FindResource. procedure division using by value s as string returning ret as type CollectionViewSource. set ret to null end method. end class. class-id WPFGridZeilen. end class.
↧