Forum Post: RE: X Button
Trap the FormClosing event on the form itself and this will be fired whenever the user clicks on the X.
View ArticleForum Post: RE: X Button
You need to generate a FormClosing event handler and add your code to the method that is generated. You can do this by clicking on the form itself and then in the properties window, click the...
View ArticleForum Post: Visual COBOL Generate KeyStroke.
Is there any way to generate KeyStroke programatically to move cursor control to the next field. The same feature was handled by the TAB key. Client's requirement is to validate each of the fileds in...
View ArticleForum Post: RE: Getting cobconfig to work.
Mozdzierz, Open a Visual COBOL command prompt. Create your text file containing set printer_redirection=true From the command line set COBCONFIG= path \cobconfig.cfg Run your app. If your USB printer...
View ArticleForum Post: RE: Visual COBOL Generate KeyStroke.
Partha, You haven't given any infiormation on how the user interface fields are implemented so it will be difficult for anybody to give you a definitive answer. Is the code using SCREEN SECTION,...
View ArticleForum Post: RE: External Defined Dataname
Can you attach a code snippet showing the definition of your field, and could you specify which version of the product you are using ? I just tried creating a simple test program with an item defined...
View ArticleForum Post: RE: Visual COBOL Generate KeyStroke.
yes Gael I am using the Screen Section but could you please explain more on CURSOR IS clause as it can take the position of next field right?
View ArticleForum Post: RE: Visual COBOL Generate KeyStroke.
Partha, The CURSOR IS is defined in the SPECIAL-NAMES paragraph of the CONFIGURATION SECTION of the ENVIRONMENT DIVISION of your program containing the SCREN SECTION. The following is from the product...
View ArticleForum Post: Field Lenght
Is there any function is avialable in VISUAL COBOL to calculate the Field-Length. We are actually facing one problem like where cursor is blinked on SCREEN-SECTION we are not able to capture the total...
View ArticleForum Post: RE: Field Lenght
Partha, Can you explain in more detail what it is that you want to achieve ? A cursor can only ever be one character wide on a character mode display (which I am assuming given the other question you...
View ArticleForum Post: RE: Getting cobconfig to work.
I will implement this suggestion. I was trying to set cobconfig from within the program itself and that seems to be my problem. Since I was not using a command line compiler like I did in the old...
View ArticleForum Post: RE: Getting cobconfig to work.
Mozdzierz, Setting cobconfig from within the program did not work because the file is read when the COBOL run-time system starts up. Once you are in the COBOL program it has already started so it is...
View ArticleForum Post: RE: Getting cobconfig to work.
Thank you for the added information and I will check that as well. I did exactly that to set the variable in windows. On another note, when I look at the properties in Visual Studio for my program,...
View ArticleForum Post: RE: Getting cobconfig to work.
I have been fighting with the VA, so my mind is not all there right now. This is one of the reasons why I decided to mess around with my old programs, is to forget about it for a while. So, I forgot...
View ArticleForum Post: RE: Getting cobconfig to work.
Apologies mozdzierz, I assumed that you were working with a native code project since you referred to setting cobconfig but the exception indicates that you are running a managed code program which...
View ArticleForum Post: RE: Getting cobconfig to work.
No apologies necessary, since I am new to MF Cobol for Visual Studio, the fault lies with me for not being versed on the proper procedures and explaining to others the context of my project. I will...
View ArticleForum Post: RE: Getting cobconfig to work.
Well, like the other option for configuration, the add tab in solutions Explorer for what I choose as an empty Cobol project is not an option I can choose, since it is grey. Any suggestions? I...
View Article