Forum Post: RE: WM_COPYDATA
What you are trying to do will not work as the address you are setting in your .NET application using set pointer to address of...does not generate a usable native pointer. There is no built in support...
View ArticleForum Post: .Net Cobol
What is the difference is using data type condition-value vs type System.Boolean. For example: method-id btnSubmit_Click final private (sender as object e as type System.EventArgs). local-storage...
View ArticleForum Post: RE: .Net Cobol
A condition-value is the predefined COBOL type that is mapped onto a Boolean. They should behave the same but it seems like the checker currently only recognizes the COBOL type within the evaluate...
View ArticleForum Post: .Net Cobol SqlDataReader
This is just sample code, but I wanted to know what would be the equivalent .net cobol to the while(dr.read) and populate to a list. public class Student { public int ID { get ; set ; } public string...
View ArticleForum Post: RE: .Net Cobol SqlDataReader
Untested, off the top of my head: perform until not dr::Read declare aStudent = new Student set aStudent::ID to dr::GetInt32(dr::GetOrdinal("ID")) set aStudent::Name to...
View ArticleForum Post: RE: .Net Cobol SqlDataReader
I am coming from a C#/VB.Net and old Cobol program language user. I am teaching myself .net cobol. What do you mean by cobol.net portable list syntax?
View ArticleForum Post: RE: .Net Cobol SqlDataReader
I'd stay with something a little more tradition for the data access with the intention of being able to reuse the code with minimal modification in 10-50 years time (by which time we may well have had...
View ArticleForum Post: RE: .Net Cobol SqlDataReader
Thanks. I ended up with this which worked perfectly. perform using conn as type MySqlConnection = new MySqlConnection(gm::GetConnection) invoke conn:: Open() perform using cmd as type MySqlCommand =...
View ArticleForum Post: RE: .Net Cobol SqlDataReader
[quote user="aadowns2"]I am coming from a C#/VB.Net and old Cobol program language user. I am teaching myself .net cobol. What do you mean by cobol.net portable list syntax?[/quote] For a while now (I...
View ArticleForum Post: How to refresh MF dialog obj from a program?
Hi there, Is there an MF dialog GUI method to refresh an object only i.e. not set focus on it? For example to enable an object i just do this. Is there a refresh equivalent method? CALL 'GUI-enable'...
View ArticleForum Post: RE: How to refresh MF dialog obj from a program?
You can use e.g REFRESH-OBJECT WIN-ARTIKELVERWALTUNG SET-FOCUS EF-ARTNR in COBOL direct...
View ArticleForum Post: .Net Cobol
In looking at the evaluate statement for the button click event, why does the evaluate txtEmailAddress::text::IsValidEmail() produce an error selection object does not match selection subject. I put...
View ArticleForum Post: RE: How to refresh MF dialog obj from a program?
Thank you for your reply Bernd. Not directly in a COBOL program? I'm using Visual COBOL 2.32 on a Windows 10 machine. In the MF Dialog code you mean? I'm trying to avoid dialog and keep control in the...
View ArticleForum Post: .Net Cobol
How would one do this in Cobol .Net? My main concern is the IsValidData function. How would I write that in .net cobol using invoke. I tried invoke type Validator::IsPresent(txtCode) and invoke type...
View ArticleForum Post: Enum
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...
View ArticleForum Post: RE: How to refresh MF dialog obj from a program?
You can control a lot of controls in the dialog system by either using win api's or the GUI class library. You must remember at some stage you might want to move to a 64 bit client interface, so...
View ArticleForum Post: RE: How to refresh MF dialog obj from a program?
Yes directly in a Cobol Program! see the "DSLANG.CPY"... You can use the most DS Syntax direct in a Cobol program! Best Regards Bernd
View ArticleForum Post: RE: Enum
This should be more or less: enum-id MyEnumType. 78 Sunday value 0. 78 Monday value 1. 78 Tuesday value 2. 78 Wednesday value 3. 78 Thursday value 4. 78 Friday value 5. 78 Saturday value 6. end enum....
View ArticleForum Post: RE: Enum
Thanks Robert. I was staring at this way too long and the answer was right in front of me. I was trying to mimic the C# code by using typeof not realizing I could use type of.
View Article