RE: Thread
This was just a simple example of one way that you can use the .NET Threading syntax which happened to use a static method. If you need to use an instance method with threading you can do this as...
View ArticleRE: Dialog error 18
That makes sense, Chris, but my output path for the cobol projects is .\bin\x86\Debug\ - I haven't changed them, but for some reason, the always copy is not recognizing that. Do the corressponding...
View ArticleRE: Dialog error 18
Each project has its own build structure and Output Folder. You can set each project to point to the same Output Folder if you wanted all output to go to the same directory. If you are using a...
View ArticleDialog error 18
I have imported a Net Express project that uses Dialog System into Visual COBOL, and I changed all the screen properties to 'Always copy' so they would could to the debug dir. However, instead of...
View ArticleRE: COBCH0837S Procedural code not allowed here
Hi Warren, Can you please be more specific? What type of statements are you trying to put in working-storage? The only statements that should go into working-storage are data definition clauses.All...
View ArticleRE: COBCH0837S Procedural code not allowed here
I meant to say Procedure Division Later today I will sent you the code.Thanks,Warren Mundy
View ArticleRE: COBCH0837S Procedural code not allowed here
Chris,Here is the little class in question.class-id consoleApplication24.Prog2b public. working-storage section. 01 myobj1 type consoleApplication24.Prog2b value new type...
View ArticleRE: Select the first line in a data grid
I did upload a simple solution with a datagrid. I can select the first line. Werner Lanter
View ArticleRE: COBCH0837S Procedural code not allowed here
You need a method to contain procedural code in managed code. Add a method-id/end method around the first procedure division, or include the working-storage if that isn't class working-storage.
View ArticleRE: COBCH0837S Procedural code not allowed here
I thought that the class had it's own copy of working-storage section. It is my intent that the first working-storage section and the procedure division be at class level and not a method level. What...
View ArticleRE: COBCH0837S Procedural code not allowed here
Yes, the class can have working-storage that is global to the class. I wasn't sure if that's what you intended. Procedural code (statements) must be in methods. A class does not have its own...
View ArticleRE: Cobol Copybook
Are the two 01 records the same length (in bytes)? If so then putting the copybook in the FD for either the input or output files will cause no problem. Separate 01 levels in an FD are treated as...
View ArticleRE: COBCH0837S Procedural code not allowed here
This might help Here is a simple class below, VCList with main static method for testing, yes the 0d0a could be improved but this show a class with a main method for testing and constructors. This is...
View ArticleRE: COBCH0837S Procedural code not allowed here
Thanks to all of you that answered my question and cleared up my misunderstanding of class vs method procedure divisions.Thanks again.Warren Mundy
View ArticleCOBCH0837S Procedural code not allowed here
I am writing an Eclipse managed cobol program.Whenever I try to put statements in the Class Working-Storage Section, my first statement gives meerror COBCH0837S Procedural code not allowed here.Am...
View Article#COBOLasks - Questions for the #COBOLrocks TechCasts
This thread is to support any Q&A coming from the upcoming #COBOLrocks TechCast. If you have any questions, please post them as a reply to this thread, or tweet them to @MicroFocus using the...
View ArticleCourseware
Does anyone know how I can get the Visual Cobol Academic Courseware CobolClass.zip file? I had it just recently and accidentally deleted the tutorial. I have all of the files. I just need the book...
View Article