"BY VALUE LENGTH OF directory-name SIZE 4" construct
The Micro Focus Developer doc related to CBL_GET-CURRENT-DIR suggests this: "Use the "BY VALUE LENGTH OF directory-name SIZE 4" construct to pass the name-length parameter." Based on the explanation...
View ArticleRE: Record Size Adjustment Question
Hello Eric, A suggestion about locating the programs that reference a given file. In Visual COBOL for Eclipse, you can search for a string that appears in files in all open projects. This is done using...
View ArticleRE: Record Size Adjustment Question
Cool thanks! That worked perfectly.Is a cobol file conversion program needed or is there a tool to increase the Record Size of an existing file?
View ArticleRE: Record Size Adjustment Question
Hi Eric, There is a utility provided with Visual COBOL that includes the ability to expand a file. The utility is named "rebuild". The rebuild utility has many different capabilities, but one of these...
View ArticleRE: Record Size Adjustment Question
Wow, that is exactly what I was hoping for ...Its a shame we don't use copybooks, or it would be a simple 5 minute fix for all programs/systems that require a record size adjustment.Thanks for taking...
View ArticleRE: How to convert C# function to Visual Cobol for .NET
You don't say what version of Visual COBOL for .NET you're using. With recent dialects, it would be something like the following:method-id. limparTextBoxes.procedure division using by value controles...
View ArticleRE: Dialog System
I have a solution for converting the screens dialog system for VS2013, look at mmsis.com.br/converter.htm
View ArticleDialog System
I want to convert a NetExpress solution that has dialog system screen into Visual Cobol, I have the Visual cobol on a separate laptop than the current NetExpress project. Is there a standalone DIalog...
View ArticleHow to convert C# function to Visual Cobol for .NET
private void limparTextBoxes(Control.ControlCollection controles){ foreach (Control ctrl in controles) { if (ctrl is TextBox) { ((TextBox)(ctrl)).Text =...
View ArticleRE: How to convert C# function to Visual Cobol for .NET
Thank you for your help. Your example works to forms without containers and in this post I forgot to specify this. I got as follows, do not know if it's the best way, but it works.method-id...
View ArticleRE: Move part of textfield to itself
I think the result of the MOVE is correct. 40 years ago I used this with assembler programming. Effectively it is a loop of moving 1 character 10 times. Position 10 to 11, 11 to 12 etc.Freundliche...
View ArticleRE: Move part of textfield to itself
The compiler directive BYTE-MODE-MOVE controls this behavior. You seem to be depending on NOBYTE-MODE-MOVE, which is documented as the default. The behavior you describe is BYTE-MODE-MOVE, as done by...
View ArticleRE: Move part of textfield to itself
Hi GuysThanks for your incredibly fast answers.Bruce, I figured there could be some compilers declaratives issues so I was reading them through when your answer arrived.I tried to set the...
View ArticleRE: Record Locking in Visual Cobol
You may need to specify NO LOCK in the READ statement. RM/COBOL doesn't try to lock a record when a file is only open INPUT, but Visual COBOL might.Several details are missing from your description of...
View ArticleMove part of textfield to itself
We are running Microfocus Cobol in a Linux Environment and recently upgraded to VisulCobol 2 2 1.We have discovered a couple of things where this version is acting in a different way compared to our...
View ArticleRE: Move part of textfield to itself
Hi again,Thanks for your input.I have tested to compile with NOBYTEMODEMOVE och BYTEMODEMOVE but there is no difference. I get exactly the same result. I managed to finf our old environment and...
View ArticleRE: Record Locking in Visual Cobol
In the Read statement on the maintenance program that is doing the I-O read?1. With MF's help, our programs were converted using their modernization tool & then editing by our staff - we are NOT...
View ArticleRE: Record Locking in Visual Cobol
The conversion tool for RM/COBOL to Visual COBOL provides a directives file legacy_dialect.dir that removes the IGNORE keyword from the language. This is because IGNORE is not an RM/COBOL reserved...
View ArticleRE: Record Locking in Visual Cobol
One more thing. The tool also provides a directives.dir file that contains the remove(IGNORE) directive. The legacy_dialect.dir file is used during the conversion process. The directives.dir file is...
View Article