Browse all forums dedicated to the Rocket® COBOL product family.
Recently active
Hi, Looking for an example on using DISPLAY WINDOW where data list is displayed, the user picks a line and that information is passed back to the main program. Thanks. -Peter#Console#DISPLAYWINDOW
Hi, I'm looking for an example that shows the best way to do a popup list that allows the user to choose a detail(slave) record that they can then edit. I'm writing small program that allows a user to create a manifest in a master table and then the user can add items to the manifest in a detail/slave table. Is there a recommended way of doing this? Would you know of a good example that you could refer me to? Thanks. Any help is greatly appreciated. Best, Peter#master-slavetable#window#popuplist#FONTACCEPTDISPLAY#ACUCOBOL9.2.4
We use C$OSLockInfo rutine to know which process is blocking one register file; the rutine returns the PID. It works OK with RM files format, but when we use it with MF files format, the rutine returns all 0. Should we use the rutine in a diferent way when we use it with MF format files? Maybe we have to use another tool to get this information? Thank you
Hello all, Is there a Visual COBOL equivalent to the C# "Using" statement? ... as shown In the following C# example, the "Using" statement (not the "Using" directive)... (as in the statement that says "Using (OleDbConnection..." ? ................................................................. using System; using System.Data; using System.Data.OleDb; class Program { static void Main() { // The connection string assumes that the Access // Northwind.mdb is located in the c:\\Data folder. // string connectionString = // "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" // "c:\\\\Data\\\\Northwind.mdb;User Id=admin;Password=;"; // Provide
Good morning. I'm working with microsoft visual studio 2010 version 10.0.40219 . I am trying to call the function " CALLRB " but it does the following error " 12336 " . syntax follows : class-id rebuild.Form1 is partial inherits type System.Windows.Forms.Form. $set idxformat"8" working-storage section. 01 parameters pic x(600). 01 Wstatus pic xx comp-x. 01 wdata. 03 ano pic 9(02). 03 mes pic 9(02). 03 dia pic 9(02). 01 whorario. 03 hh pic 9(02). 03 mm pic 9(02). 03 ss pic 9(02). method-id NEW. procedure division. invoke self::InitializeComponent goback. end method. method-id pbprocessar_Click final private. procedure division using by value sender as object e as type System.EventArgs. * faz rebuild do arquivo idx move "C:\\temp\\teste.dat,C:\\temp\\teste2.dat" to parameters call "CALLRB" using parameters , Wstatus end-call if Wstatus = zeros then * mensagem para usuario invoke type MessageBox::Show("R
Hi, Anyone interested in tutoring a newbie in AcuCobol in text based programming? Looking for one hour a week of tutoring . Best, Peter #tutoring#AcuCobol
\\Documents\\Micro Focus\\Visual COBOL\\Samples\\Convert_ACU_and_RM_Files_to_MF\\rm2mf\\Readme.xml says "This utility converts an RM/COBOL indexed file or directory of files to Micro Focus indexed files. The RMMFDataMigration.exe and RM2MFconvert.dll executables can be used as delivered, or the source can be modified and rebuilt as desired." I got the solution to compile and convert a file, but I'm having trouble finding the source. Where is the source for RM2MFconvert.dll and inxconvert.cob?
Hi Chris, The objective is to Consume the WCF Created in .NET 4.5 in Visual COBOL.(In Native Code VIA Managed Code) To Do this I have followed following Steps: 1. Created an Managed Project in Visual COBOL, Added the Service Reference of .NET WCF. 2. Selected the Property of Managed project as "Register for COM Interop". I am getting couple of Warning for the same. (Type Library exporter warning Generic Code may not exported to COM.) 3. Created an managed program to create an object of WCF Client Class and call the WCF methods. 3. Created an Native Project and added a Native Program. 4. Provide the Class Control section to point to the OLE object created by Managed Project. 5. Tried to Invoke the Managed Program of Managed Project from Native Program. I am able to reach to the Managed Program (getting a display from there) But when managed program tries to call the WCF method , I am getting following error " Could not find the default endpoint element that referenc
Hi, Does any one have a Visual Cobol example of how to read a text file one character at a time using the System.IO.FileStream method so I can display the data in a TextBox ? Thanks in advance for any assistance. Kind regards Neil.
with the call 'PC_PRINTER_DEFAULT_PROPERTIES' it is possible to select quite a lot of properties. Is it also possible to call this Routine after opening the Printer, when we know which Printer he selected?? I see it very usefull to give the Operator the possibility to select p-copies, papersize, p-Duplex, etc. but all depending on the selected Printer. That means if he selects example plain generic text Printer there is no sense to select Quality, Color, etc. thanks Rolf
Hi Guys, We have recently procured Acu 9.2.5 extend. Since it comes with a feature of creating Web Service, we are planning to create. Now, this our first time, creating a web service. We would really appreciate if someone can help us with a step by step approach to create web service via Acu 9.2.5.
Again with my custom control in .NET ... well the event are fired and catched from my "event procedure" and all is wrapped from an accept screen.. ShowGrid. modify net-grid "@ShowGrid"(). set exit-now to false. perform until Exit-Pushed accept screen-1 on exception perform Acu-Screen1-Evaluate-Func end-accept end-perform. . But the problem is when I need to close the form from the .NET event procedure. How to break the accept and go to exception handling? I've tried to call the exit program but from an event procedure is ignored. The manual say to force EVENT-ACTION-FAIL to EVENT-ACTION variable but don't work. Any suggestion? Thanks Andrea#.net
[Migrated content. Thread originally posted on 20 February 2012]Using embedded SQL statements in a COBOL program is a fairly common thing to do but even if you've been doing this for a while, it's not always clear what options are available. Here's a quick summary of what you can do and when you need to opt for one approach over another.Generally speaking, there are 2 approaches to accessing a database from a COBOL program that contains embedded SQL statements:1. Use the Database vendor’s pre-compiler. The pre-compiler takes as input the COBOL source file and outputs another file that is compiled by the Micro Focus COBOL compiler.2. Use Micro Focus OpenESQL technology. There are some upsides and drawbacks to using the a pre-compiler:1. The pre-compiler can offer extra performance over OpenESQL but this is generally negligible. 2. The pre-compiler allows you to access non-standard DB-specific extensions.3. Compilation is a two stage process. Pre-comp
Hi, I'm looking for an example that shows the best way to do a popup list that allows the user to choose a detail(slave) record that they can then edit. I'm writing small program that allows a user to create a manifest in a master table and then the user can add items to the manifest in a detail/slave table. Is there a recommended way of doing this? Would you know of a good example that you could refer me to? Thanks. Any help is greatly appreciated. Best, Peter #master-slave#popup
Good morning,I'm new to the forum, a query because the method does not appear MessageBoxResult?Any doubt I am to order.regards, Oscar Velasquez G.Panama
Good Morning, I have a program that is located on a Windows 2008 or 2012 server which I am trying to run from a Windows 7 64-Bit Professional desktop. When I try to run the program I get a windows error and the program does not run. I have attached a screen shot of the error. I have this running in other sites with the same configuration. Any advice? Thanks, Bob
Need to convert this program in C# for Cobol can anyone help me to understand what I need is to make a routine that it is reading a particular folder and when you input files it shows me, this routine found on the Microsoft website.thanks, sorry for the English, translated by Google. using System;using System.IO;using System.Security.Permissions; public class Watcher{ public static void Main() { Run(); } [PermissionSet(SecurityAction.Demand, Name="FullTrust")] public static void Run() { string[] args = System.Environment.GetCommandLineArgs(); // If a directory is not specified, exit program. if(args.Length != 2) { // D
Hi, How to create an EXE that can be executable on any PC by using Silk Test 16.0.2.7495. Thank you.
the Call to Winapi MessageBox is a very easy way to send short messages. But does somebody know how I can, in the same easy way, place this Box on a certain position of the screen? Often the screens are very big and the message appears in the middle of the video and not on the active window. thanks for help Rolf
Problem: How can I compute the 32-bit CRC sum check within an RM/COBOL program? Resolution: See the attached source code example. Attachments: crc32.zip Old KB# 4677
FileChangeNotifierVC.zipProblem: Is it possible to monitor a specified folder or filename for any changes that may occur from within a Visual COBOL Windows Forms application? Resolution: Yes it is possible to monitor either a specified folder or filename for any changes and to fire an event when a change does occur by using the .NET System.IO.FileSystemWatcher class in conjunction with a timer event. There is a demo program attached to this article called FileChangeNotifierVC.zip. Please unzip this to your computer retaining the folder structure in the zip file. Open up the FileChangeNotifierVC.sln file in Visual COBOL for Visual Studio 2.2 update 2 or higher. This is a Windows Forms application that will monitor the file system for changes to a specified folder or filename and will report those changes in a ListBox control on the form. The contents of the main form program are shown below: *--------------------------------------------------- * FileChangeNo
Problem: The Just-In-Time debugging options are disabled and cannot be changed, and the following error occurs when attempting to check any options:"Just-In-Time debugging registration errors detected. Run Visual Studio repair, or run 'vsjitdebugger.exe /regserver'." Resolution: This is one of the problems that may occur when Visual Studio is not installed with administrator credentials. Administrator credentials are only required to install Visual Studio, but a regular user may use Visual Studio after installation. Here are the steps to resolve this issue:1. go to Start > All Programs > Microsoft Visual Studio 20xx > Visual Studio Tools2. right-click on Visual Studio Command Prompt (20xx)3. click on Run as administrator4. execute the command: vsjitdebugger.exe /regserver5. go to Start > All Programs > Microsoft Visual Studio 20xx6. right-click on Microsoft Visual Studio 20xx7. click on Run as administrator8. click on Tools > Options > Debugging &
Problem: It is possible to set an environment variable from the system level or right before starting Net Express. How to view the environment variables that are set while debugging? Resolution: Here are the steps to view environment variables while debugging:1. click Project > Properties2. click Application under Environment section3. click Import4. click Import5. view the environment variables and their respective values6. click Cancel when done viewing7. click Cancel to close Application Environment screen8. click Cancel to close Project Properties screen
Hi all, Hope all is well. I just have a query about printing to pdf. Basically, we moved from Net Express to Visual Studio 2010 a short while ago. Some of our programs stayed as native code. One of these prints to an Adobe pdf file using Courier New font but with mixed font sizes. The program worked fine in Net Express but is terribly slow to run in Visual Studio. What took a minute or two on the old system is taking 20 minutes in Visual Studio. The issue is definitely due to the font size as changing everything to print the same font size means the Visual Studio program runs fine. It's not ideal if we have to do that which is why I was wondering if anyone knows of a solution? Many thanks if you can help! Another thing I noticed with pdf printing in Visual Studio is blank line spacing seems to be greater than in Net Express, causing our report lines to "creep" down the page. It meant I had to adjust the page overflow lines. Again, I didn't expect to have to do t
This line of code gives the error "COBCH1623: Anonymous method or method group cannot be cast to type DevExpress.XtraPrinting.CreateAreaEventHander.": ATTACH METHOD link__CreateReportHeaderArea to link::CreateReportHeaderArea This is the C# code that I'm converting to Visual COBOL: private void btnPrint_Click(object sender, EventArgs e) { IPrintable component = gridControl1; PrintableComponentLinkBase link = new PrintableComponentLinkBase() { PrintingSystemBase = new PrintingSystemBase(), Component = component, &nb
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.