Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Syntax for passing arguments to a user event with PostEvent????

Status
Not open for further replies.

kaul125

Programmer
Jan 29, 2002
87
US
I created a user event for a datawindow that has arguments defined. I want to pass arguments to this user event by using dwc.PostEvent ().

However I have not found the correct syntax to do this. I've tried variations, including the following, and nothing I've tried works.

dwc.postevent user_event_name(arg1, arg2) // this does not work

what is the right syntax to Post a dwc's user event that has arguments defined?

Keith
 
Hi,

You don't say which version of PB you are using. However, the following syntax is OK in PB6.5 and greater:

Try dw.post event event_name(arg1, arg2, argN) etc. Note space between
Code:
post
and
Code:
event
and
Code:
event_name

Cheers.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top