Quantcast
Channel: Visual COBOL
Viewing all articles
Browse latest Browse all 5819

Forum Post: Enum

$
0
0
How would one rewrite the Enum.GetNames(typeof(MyEnumType)) syntax to .net cobol. I am trying to populate my combobox with an enum and I cannot figure out the syntax for the GetNames(). public enum MyEnumType { Sunday = 0, Monday = 1 , Tuesday = 2 , Wednesday = 3 , Thursday = 4 , Friday = 5 , Saturday = 6 , } // In the form Load event, bind the combobox to the data source. private void Form1_Load ( object sender, EventArgs e ) { comboBox2. DataSource = Enum . GetValues ( typeof ( MyEnumType ) ) ; comboBox2. SelectedItem = MyEnumType. Friday ;

Viewing all articles
Browse latest Browse all 5819

Trending Articles



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