Running a cls file from an icon

Posted by Admin on 10-Feb-2010 07:11

Progress wizards,

As the title suggests I'd like to run cls program I have created from an icon on my desktop. I've had a look how our current .w program is run and that scares me. I'd really appreciate any help you could throw my way.


Dez


All Replies

Posted by rbf on 10-Feb-2010 07:35

The easiest way to get started is to start the .cls in question from your OpenEdge Architect debugger and examine the first program generated by OEA. It is called 'RunClass--something.p".

Posted by Admin on 10-Feb-2010 08:07

Hi Peter,


I'm not that familar with the debugger. Whereabouts in particular should I be looking for this information when I run the application?


Thanks, Dez


Posted by Admin on 10-Feb-2010 08:11

Ah found it, thanks!


Posted by OctavioOlguin on 15-Oct-2015 16:05

would you mind to share your findings?  as I havce the exact same question but can figure out how to?

Greetings!!

Posted by Mike Fechner on 15-Oct-2015 16:10

You can't. You need to create a (small) .p file.

DEFINE VARIABLE oForm AS <your form class> NO-UNDO .

oForm = NEW <your form class> () . 

WAIT-FOR System.Windows.Forms.Application:Run (oForm) . 

CATCH err AS Progress.Lang.Error:
  
    MESSAGE err:GetMessage (1) VIEW-AS ALERT-BOX .
END CATCH.

Posted by OctavioOlguin on 15-Oct-2015 16:25

Thanks!!!

You rock! as always...

This thread is closed