Skip to main content

C# Code to Cobol Code

  • September 30, 2013
  • 3 replies
  • 0 views

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

  • September 30, 2013

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+2
  • Moderator
  • September 30, 2013

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


  • September 30, 2013

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