Cobol .Net Exception Handling
Why does the exception handling var myex always reference "object reference not set to an instance of object" Catch myex as type Exception set str = str::Append("Source " & myex::Source) set str =...
View Article.Net Cobol
Is the local-storage section a "best practice" place to define all of your method variables? For example:method-id Encrypt. local-storage section. 01 clearBytes binary-char unsigned...
View ArticlePrint a PRN file directly to a printer
Hi All,Im trying to print a file I've already created call c:\tmp\NeilTest.prn directly to a printer using Visual Cobol, is there a clever .NET way of doing this?I found below but not sure if this is...
View ArticlePersonal Edition Wont Authenticate
As the title says. The personal version sent my student email a 1 year trial for Visual COBOL. Myself and 0 of my friends can get it to authenticate.
View Article.Net Cobol
What is the .net cobol equivalent to the following C# code? I just need to know the equivalent to the ++ operator and how I would write score++ in .net cobol. int score = 1;if (Regex.Match(password,...
View ArticleCompile Visual Cobol for .EXE
I am confused about compiling Visual Basic programs. When I create a "NATIVE" Cobol Command Line Application and then use the compile option under the Visual Studio Menu item "BUILD" it compiles just...
View Article.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 Article.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. publicclassStudent{publicint ID...
View ArticleHow 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' using...
View Article.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 Article.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...
View ArticleEnum
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().publicenum...
View ArticleProgram Statistics
Is there a way to produce COBOL program statistics report. Similar to the method Mainframe express used to do it. I need the lines of code for the programs. We are starting a process of source cleanup,...
View ArticleFile open output and assign to printer works fine but need to add contents...
Here is my select statement for a file used as printer handling SELECT PRINT-FILE ASSIGN TO PRINTER "prt109" FILE STATUS IS ERR-STATUS. FD PRINT-FILE RECORD CONTAINS 132 CHARACTERS LABEL RECORDS ARE...
View Articlevisual cobol winform button control Flatstyle
Property type FlatStyle for Button control in winform application is set to type "standard". This behaves well in the development environment but it behaves as if property type was set to "Flat" when...
View ArticleVisual Studio 2017
Has anyone tried running Visual Cobol in Visual Studio 2017 yet?I know VS 2107 isn't officially out yet, but it sounds like it will be released soon.
View ArticleDifference Linux Interface Mapping Toolkit v6.0.00
Hi,When deploy a Cobol Web Service with variable array (OCCURS DEPENDING ON), work fine on Windows 7 but i can't deploy on Suse 11; and i need it on Suse for production.The computer is the same and the...
View ArticleThe CALL statement
I'm using Visual COBOL in Visual Studio 2015 and I'm having trouble doing a simple CALL statement. In NetExpress the called program .CBL had to be in the same directory and it always worked. Not sure...
View ArticleLinq/Lambda
How would one convert this linq/lambda expression to .net cobolreturnEnumerable.Range(0, reader.FieldCount).ToDictionary( i => reader.GetName(i), i => reader.GetValue(i));What I have so far is...
View ArticleObject Initializer
How would you write the student.Add(new Student() {....} in .net cobol. My attempt isinvoke student::Add(new Student() (new Student::IDThis is as far as I got before syntax errors.SqlDataReader...
View Article