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

translate C# WriteLine to Visual COBOL

$
0
0

The following C# console program, when translated to the following Visual COBOL equivalent, produces different results - apparently the tab (the \t escape sequence) is not recognized in the COBOL version of the program (???).

C# :

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Threading.Tasks;

namespace csConTest1

{

    class Program

         {

        staticvoid Main(string[] args)

                 {

             Console.WriteLine("\t{0}\t{1}\t{2}",

                               "1", "2", "three");

                 }

         }

}

 

Visual COBOL:

        program-id. Program1as"cblConTest1.Program1".

        datadivision.

        working-storagesection.

        proceduredivision.

            InvoketypeConsole::WriteLine("\t{0}\t{1}\t{2}",

                                           "1", "2", "three");

            goback.

         endprogramProgram1.

 


Viewing all articles
Browse latest Browse all 4356

Trending Articles



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