Skip to main content

C# Code to Cobol Code

  • Sep 30, 2013 7:28 AM UTC
  • 3 replies
  • 7 views

Dominique Sacre
Forum|alt.badge.img+2

Hi!

I have some C# Code and i Need it in Cobol code:

            TextBox tb = sender as TextBox;
            tb.SelectAll();

Can anyone help?

3 replies

  • Sep 30, 2013 8:03 AM UTC

Hi!

I have some C# Code and i Need it in Cobol code:

            TextBox tb = sender as TextBox;
            tb.SelectAll();

Can anyone help?

Visual COBOL 2.1 upd 1

Declare tb as type TextBox *> if you prefer you put this into working or local storage.

set tb to sender as TextBox

invoke tb::SelectAll()

Kind regards

Joachim Blome


Chris Glazier
Forum|alt.badge.img+4

Hi!

I have some C# Code and i Need it in Cobol code:

            TextBox tb = sender as TextBox;
            tb.SelectAll();

Can anyone help?

You might also want to take a look at the Visual COBOL documentation in the section for Comparison of COBOL with other Managed Languages

Thanks..


  • Sep 30, 2013 9:07 PM UTC

Hi!

I have some C# Code and i Need it in Cobol code:

            TextBox tb = sender as TextBox;
            tb.SelectAll();

Can anyone help?

There was a missing "type" in my mail. The line really should be

set tb to sender as type TextBox