Forum Post: RE: Visual Studio 2017
Hello Mike, Glad to see you're interested in trying out what the latest Visual Studio has to offer but as you note, Visual Studio 2017 is not get GA and cannot be used with Visual COBOL today. ...but...
View ArticleForum Post: 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 ArticleForum Post: RE: The CALL statement
In my case I store the compiled object code in the same directory for both the host and the called program and Visual Cobol works just like Server Express used to. Can you try that? As long as you have...
View ArticleForum Post: RE: The CALL statement
You do not call .CBL programs, you call the compiled programs as either .INT, .GNT or .DLLs depending on the compile options that you are using. If you have a main .EXE which issue the call statement:...
View ArticleForum Post: RE: The CALL statement
You might want to have a look at this great tutorial made by Chris Glazier on projects and solutions, which will help you to understand how and where Visual COBOL or Visual Studio creates its output...
View ArticleForum Post: RE: Program Statistics
If you are using Visual COBOL V2.3 the context menu option is available. If you are using Visual COBOL V2.2 or earlier, you can still use the context menu, however choose Show COBOL Reports >...
View ArticleForum Post: Linq/Lambda
How would one convert this linq/lambda expression to .net cobol return Enumerable . Range ( 0 , reader . FieldCount ) . ToDictionary ( i => reader . GetName ( i ), i => reader . GetValue ( i ));...
View ArticleForum Post: RE: Linq/Lambda
It should be possible to use anonymous methods in place of the lambda expressions (which are really just an alternative, more streamlined way of expressing C# anonymous methods). Something like: set...
View ArticleForum Post: RE: How to refresh MF dialog obj from a program?
Hi Neil, thanks for your reply. Are you an MF employee out of interest? For now I don't have time to move away from dialog but understand it's old hat. I've been using the GUI library as per the...
View ArticleForum Post: RE: Linq/Lambda
Cobol was not happy with the syntax of the delegate. Here is the complete code that I am attempting to use it with. method-id btnOK_Click (sender as object e as type System.EventArgs) final private....
View ArticleForum Post: RE: How to refresh MF dialog obj from a program?
I send you a very small sample there you can see how it works :-)
View ArticleForum Post: RE: Linq/Lambda
You don't have parenthesis around the arguments to the delegates: delegate (I) returning ret as string set ret to rdr::GetName(i) end-delegate
View ArticleForum Post: RE: Linq/Lambda
when I use delegate (I) returning ret... I am getting unrecognized verb at (I) and also and error at ToDictionary saying it has no visible to which generic parameter types can be inferred.
View ArticleForum Post: RE: Linq/Lambda
The params used in an anonymous delegate need to specified as new parameters using AS, etc. You are passing an existing data item in working-storage. The following works for me: delegate(ind as...
View ArticleForum Post: RE: Linq/Lambda
declare something = type Enumerable::Range(0, rdr::FieldCount)::ToDictionary ( delegate using i as binary-long returning ret as string set ret to rdr::GetName(i) end-delegate delegate using i as...
View ArticleForum Post: RE: Linq/Lambda
set dict to type Enumerable::Range(0, rdr::FieldCount)::ToDictionary ( delegate using i as binary-long returning ret as string set ret to rdr::GetName(i) end-delegate delegate using i2 as binary-long...
View ArticleForum Post: RE: Difference Linux Interface Mapping Toolkit v6.0.00
Hello Enrique, I am looking into the issue you are having. Are you saying that when you have Visual COBOL for Eclipse 2.2 installed on Windows, and deploy to a Web Service also on Windows, the deploy...
View ArticleForum Post: RE: How to refresh MF dialog obj from a program?
Thanks BERND for your help. I'm using the MF std "dslang.cpy" and it's working great . Very happy I can stop using actual dialog and control things from the programs. NEIL, getting the dialog control...
View ArticleForum Post: Object Initializer
How would you write the student.Add(new Student() {....} in .net cobol. My attempt is invoke student::Add(new Student() (new Student::ID This is as far as I got before syntax errors. SqlDataReader dr ;...
View ArticleForum Post: RE: How to refresh MF dialog obj from a program?
Hi Linden, Glad you have least come right and got something working. I don't work for Micro Focus, but I tend to find myself on the bleeding edge of technology and asking Micro Focus to come to the...
View Article