Quantcast
Channel: Visual COBOL - Forum - Recent Threads
Browsing all 1559 articles
Browse latest View live

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 Article


Print 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 Article

Personal 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 Article


Compile 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 Article


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' 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 Article

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().publicenum...

View Article

Program 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 Article


File 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 Article

visual 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 Article


Visual 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 Article

Image may be NSFW.
Clik here to view.

Difference 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 Article


The 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 Article

Linq/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 Article

Object 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
Browsing all 1559 articles
Browse latest View live


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