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

RE: Visual COBOL - organization is xml

Hi Partha,In the example in this thread WS-XML-DATA will be the target field that will receive the generated XML upon completion. The field names under XML-DATA will be used as the tag names within the...

View Article


Best of two Worlds

In the Samples supplied with Visual Cobol you find examples on how to call (native) Cobol code from C#.But, what about the other way 'round? Calling C# from Cobol? Enter this as a search and you find...

View Article


RE: Formatting numeric data items

Hi Add this in01  DecmialValue-E  PIC  ZZ,ZZ9.99-.then   MOVE DecimalValue TO DecimalValue-E.and then work with the 'edited' field DecimalValue-E which will show 4 leading spaces 99.00 and one trailing...

View Article

RE: Formatting numeric data items

Oops!  A slight typo in the aboveUse this instead01  DecimalValue-E  PIC  ZZ,ZZ9.99-

View Article

RE: Formatting numeric data items

HalloYou mentioned that you are a C# developer. So I recommend using the new Cobol type definitions and not the old Picture. In your case the type is decimal: 01 DecimalValue decimal. See Help for all...

View Article


Image may be NSFW.
Clik here to view.

IList[string] instead of List[string]

Why, when I set a variable to a new instance of List[string], do I get an IList[string]? They aren't interchangeable and by giving me an IList[string] I have no access to any properties or methods not...

View Article

RE: IList[string] instead of List[string]

Hi Randy, in the syntax:declare TableNew as List[string]... the word 'List' is interpreted as a reserved word indicating a predefined LIST type, which as you have discovered is mapped in .NET onto the...

View Article

RE: Formatting numeric data items

If on the other hand you have existing code which uses the PICTURE definition, you should be able to get the results you want by using a cast operation to decimal (which is a predefined type meaning...

View Article


Formatting numeric data items

Hello,I am trying to display the value of a data item in a textbox in a managed COBOL program.The variable is defined  01 DecimalValue PIC S9(5)V99 and contains the value 99.00.When I put that value...

View Article


RE: Formatting numeric data items

PIC S9(5)V99 is not a real decimal value, it's just a numeric string. The following statement does what you want: set textBox1::Text  to  (DecimalValue as decimal)::ToString("N02")Paramter "N02" will...

View Article

RE: Cobol editors

You can install Visual COBOL for Eclipse and Visual COBOL for Visual Studio on the same machine but they are each a distinct product with their own installers.Visual COBOL will not install into Visual...

View Article

Cobol editors

Can you download both eclipse and visual web developer to the same machine and use either one for coding cobol programs?

View Article

RE: Visual Studio for Visual Cobol

Visual COBOL installed into the Visual Studio Integrated Shell contains everything you need to develop a COBOL application including editor, compiler, debugger, etc.but there are some limitations when...

View Article


Visual Studio for Visual Cobol

I am going to be downloading a copy of Visual Cobol on my labtop and am wondering do I need to install a Visual Studio copy to edit and work with the programs?

View Article

CCW type project, can also be called from Managed?

OK, I have put together a scenario where I have a Native Console COBOL program code calling (invoking) a Managed Win-Forms COBOL program code (class/method).  This was based on the CCW tutorial plus...

View Article


RE: CCW type project, can also be called from Managed?

It is actually much easier to call the managed WinForm app from another managed program as you do not go through the extra COM Interop layer.Add a new managed console project to your ManWin1 solution...

View Article

RE: How to show monetary value in a MaskedTextBox

This appears to be a limitation of the MaskedTextBox control in that the format is a fixed length and requires the same number of digits in order to format it correctly.You might want to look at...

View Article


RE: IList[string] instead of List[string]

Thanks, Robert.I'm always forgetting to add the TYPE keyword (C# of course doesn't have that) just like I keep trying to  terminate lines with semi-colons. But usually, I get an error if I don't have...

View Article

RE: IList[string] instead of List[string]

Yes, I know a lot of people have problems with the TYPE keyword (also internally here within Micro Focus) - problems with dealing with a language that has so much syntax and so many reserved...

View Article

RE: Call program in EVALUATE clause

Hi Thomas,It appears you have F1-PRG (the field you're testing in the EVALUATE) defined as PIC X(8), yet the value you are testing for is 9 characters. So, at best, F1-PRG may contain "TBN01002", but...

View Article
Browsing all 4356 articles
Browse latest View live


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