RE: mf cobol data file path
Like I said you cannot use an app.config in a Class Library project as it will not be loaded. You would have to add the COBDATA environment variable to the app.config of the C# main program, or set the...
View ArticleRE: mf cobol data file path
should the select statement have quotes in it for the file name?
View ArticleRE: mf cobol data file path
The quotes are fine. This does a static assignment to a file named Z-SOMPR-FL that resides on disk.The problem is in how you are setting COBDATA.Try setting this in the computers environment to see if...
View ArticleRE: mf cobol data file path
set COBDATA in windows but still nothing, I this seems to be a setting issue more than anything else.
View ArticleRE: mf cobol data file path
Which product version are you using? I am testing with 2.3 update 2. It could be that RM data files did not use COBDATA in earlier releases but I would have to do some checking. If I know the version...
View ArticleRE: mf cobol data file path
Micro Focus Visual COBOL 2.3 Version 2.3.02187.I can hard code the file path into the program and it finds the file.
View ArticleRE: mf cobol data file path
I have an rm project with COBDATA set and this program can find the data files. Would the project structure make a difference?
View ArticleRE: mf cobol data file path
I am not sure what you mean by "rm project". Do you mean a managed console application that generates an .exe file? This should work with the app.config.I can get this to work in a Class Library...
View ArticleRE: mf cobol data file path
I set COBDATA like you did and the cobol program found the file.
View ArticleConnection Name Not Found - 19702
Hi,I am migrating from Server Express 5.1 to Visual Cobol 2.3. I am getting error as connection name not found.I am using ESQL and Sub Program is calling Main Program. Connection is getting established...
View ArticleRE: Question About Zero Suppression
With this code you have to enter 3.28, which will give you as display result : blank3.28, with other words you must use the decimal point on the keyboard.However: if you add another line to your code,...
View ArticleQuestion About Zero Suppression
I have been testing Visual Cobol against an older Cobol main frame system and just have a question about Z Zero SuppressionHere's a sample programIDENTIFICATION DIVISION. PROGRAM-ID. EXAMPLE....
View ArticleCellEndEdit event.
I have a Windows Form view a datagridview in my cobol program. During program execution I am editing the contents of a cell without leaving the cell, i.e. I am not hitting the Enter or Tab key. Without...
View ArticleConnecting to MySQL
Hi there,I'm connecting to a MySQL db from Visual COBOL on Windows 10 and have a few questions I'm hoping someone can help with.I have watched Chris Glazier's useful MF video, 'Database Access Using...
View ArticleRE: Windows API calls from managed code
After coding the following, the WinAPI call works although I get the exception below in my event log when I execute "SET MYPOINTER": $set noilnative $set ilpinvoke"kernel32" $set...
View ArticleRE: Windows API calls from managed code
Your first suggestion produced no errors. I really don't need to set a procedure pointer. I only needed to add these lines to the top of the program: $set ilpinvoke"kernel32" $set...
View ArticleRE: Windows API calls from managed code
You should do either the $set ilpinvoke"kernel32" or the set proc-pointer statement but not both.
View ArticleCalling Windows API from managed COBOL
Hello,I need to call Windows API function from managed COBOL. In native COBOL I'd write something likeenvironment division. special-names. call-convention 74 is WAPI....working-storage section.01...
View ArticleMapping events in COM object
Hello,(thank you very much for reply on my first question. It works.)I have this problem. I've been creating COM object in Visual COBOL that should create some visual object in window originally...
View Article