How Do I Send Information With a Raised Event? (Magic xpa 4.x)
-
Create your event as usual.
-
Go to the Parameters column. Zoom and the Event Parameters window will appear.
-
Enter the parameters you would like the event to accept.
-
Go to the location where you want to raise the event.
-
Type R to create a Raise Event operation. The Event box will appear.
-
Go to the Event Type field. Select User.
-
Go to the Event field. Zoom to select the event. Since the event we just created has parameters, you will get a Confirmation box: “Create Parameter variables to match parameters to the event?”. If you click Yes, then the parameters will be automatically created for you.
Now, when you raise the event, you can pass a parameter list, just as you would if you called a program.
The Online and Rich Client Samples projects (program EH11 and REH11)