| 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"
|