Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 28 FEB 2001 08:15:32PM b cameron wrote:

Still having some trouble with bound form reads.

1. I have a bound form with two controls that make up the key.

id*date. In the create event of the window I have

If Len(CreateParam) Then

 get the id and Set_P
 get the date and Set_P
 Call Forward_Event(@window,"READ")

End

Return 1

I also have a quick event in the create to invoke my "OMNIEVENT" code for creating a menu with the right mouse click.

In the READ event for the window I have

Call Forward_Event()

Get_P….various data from invisible controls

Fill my LISTBOX controls

RETURN 1

This works fine now except when starting the window from another and

passing createparam. I know the createparam is getting there because my key values get filled but it seems the read doesn't get done.

Do I have my "chain" values (RETURN 1) incorrect?

Thanks. BC


At 01 MAR 2001 09:11AM Donald Bakke wrote:

Bruce,

If your code summary is correct then the problem is that you are using Forward_Event in the CREATE event. Change it to Send_Event. Forward_Event cannot call another type of event, it can only pass on event processing within the current event chain.

[email protected]

SRP Computer Solutions, Inc.


At 01 MAR 2001 10:35AM b cameron wrote:

Don,

Thanks that took care of it!

While I'm here… I am still having problems with my other form.

It is a bound form. In the create event I have a quick event to

call my omnievent which sets up the right click menu code.

In the read event I have …

Call Forward_Event()

Item=Get_Property(@window,"RECORD")

If Len(item)then

 take data in invisible controls and fill my list boxes.

end else

 fill the list boxes with default hardcoded data here.

End

RETURN 0

When I run the form, if I enter an ID that is not on the table then

my "end else" is performed. This works fine.

If I enter and ID that is on the table the data is read, my listboxes

are filled and all is well.

The problem is if I leave the ID control blank and click my popup button (which is a quick event, then return to @window;QBFLIST) to display a list of valid ID's (from a users table),

and then select one from the list, I get the FS100 Record "XX" does not exist" message , the ID gets filled but it seems the code in the READ does not get processed.

The same happens if the ID does exist on the table and if selected from the popup.

I did try your suggestion of calling the popup from a script and forcing the read but that did not work.

Thanks for all the help this week.

BC


At 01 MAR 2001 11:20AM b cameron wrote:

Don,

I figured it out. Used a script and Popup() and send_event.

There might of been junk in the script that didn't get destroyed.

Thanks again.

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/a580aca8eb9a85a885256a020006ea9c.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1