Quantcast
Channel: Visual COBOL
Viewing all articles
Browse latest Browse all 5819

Forum Post: RE: One more C# WPF to Cobol

$
0
0
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.

Viewing all articles
Browse latest Browse all 5819

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>