Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3116

Re: Programming with multiple classes

$
0
0

Hi Leon,

Where do you declare the

Private FormEvent As SAPbouiCOM.EventForm = Nothing

FormEvent = SBO_Application.Forms.GetEventForm(FormType)

AddHandler FormEvent.CloseAfter, AddressOf OnAfterFormClose

And also this method

PublicSharedSub OnAfterFormClose(ByVal pVal AsSAPbouiCOM.SBOItemEventArg)


 

The FormEvent object must still 'alive' when you closed your form.

The easiest way to make sure it is still alive is to declare the FormEvent as a public global variable. Maybe in a module. Declare it with 'Public'

 

Regards
Edy


Viewing all articles
Browse latest Browse all 3116

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>