Absent Member.
Absent Member.
1369 views

C# Code to Cobol Code

Jump to solution

Hi!

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

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

Can anyone help?

Best Regards

Bernd Riemke

0 Likes
1 Solution

Accepted Solutions
Micro Focus Expert
Micro Focus Expert

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

View solution in original post

0 Likes
3 Replies
Cadet 2nd Class Cadet 2nd Class
Cadet 2nd Class

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

0 Likes
Micro Focus Expert
Micro Focus Expert

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

View solution in original post

0 Likes
Cadet 2nd Class Cadet 2nd Class
Cadet 2nd Class

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

set tb to sender as type TextBox

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.