Skip to main content

Hi!

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

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

Can anyone help?

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


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


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