Quantcast
Channel: Visual COBOL - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 4356

RE: default parameters

$
0
0

Yes, this is possible using the 2.2 version of Visual COBOL, and the syntax is quite similar to the C# syntax.  

As an example:

      class-id a.

      method-id main static.

          invoke self::MyString("Hello")

          invoke self::MyString

      end method.

      method-id MyString static public.

      procedure division using by value passedString as string = " ".

          display passedString

      end method.

      end class.


Viewing all articles
Browse latest Browse all 4356

Trending Articles



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