For Programmers: Free Programming Magazines  


Home > Archive > Cobol > January 2007 > Re: Fujitsu NetCOBOL for .NET v2.1 MessageBox question









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Fujitsu NetCOBOL for .NET v2.1 MessageBox question
wesley_3@hotmail.com

2007-01-09, 3:55 am

Frank Swarbrick wrote:
> and
> you
> caption",
> the
> exact
> *>
> *>
> *>
> based
> in
> does,
> it
>
> You have to declare them in the repository for your class.
> repository.
> class Form as "System.Windows.Forms.Form"
> class DialogResult as "System.Windows.Forms.DialogResult"
> class MessageBoxButtons as "System.Windows.Forms.MessageBoxButtons"
> class MessageBox as "System.Windows.Forms.MessageBox"
> property YesNo
> property Yes
> .
>
> I haven't worked with .NET enumerations in COBOL yet (DialogResult and
> MessageBoxButtons are enumerations), but I think this should work.
>
> Frank
>
>
> ---
> Frank Swarbrick
> Senior Developer/Analyst - Mainframe Applications
> FirstBank Data Corporation - Lakewood, CO USA


Frank, thanks for the input. I finally got it to work. I didn't have
the Enum statements set up correctly in the Repository. The following
is what I ended up using.

REPOSITORY.
CLASS CLASS-MESSAGEBOX AS "System.Windows.Forms.MessageBox"
ENUM ENUM-MBBUTTON AS
"System.Windows.Forms.MessageBoxButtons"
ENUM ENUM-DIALOGRESULT AS
"System.Windows.Forms.DialogResult"
PROPERTY PROP-YESNO AS "YesNo"
PROPERTY PROP-YES AS "Yes"
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com