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 03 JUN 1998 06:22:14PM Jeff Blinn wrote:

This is a bit odd - but here goes . . .

I've created a popup that I call from a button's click event (see code below). The code should break to the debugger after the user selects some rows, or cancels. This is a multi select, K type popup. I use the code to pass the list of keys from the current record. The popup is also defined as searchable, sortable, etc.

The popup displays 4 fields - Name, City, State & Number of Subscribers (an integer).

This works fine, and I get the desired results - EXCEPT - when I double click the Subscriber column heading to sort by the subscriber count (which the users will probably want to do) - the program breaks to the debugger after it displays the data in its new sort order, as if a value was returned. If I have the debugger continue, I am returned to the popup. I can then select records, click OK - but the values are not returned to the calling program.

I can sort on any of the other columns as many times as I like, and it works fine. The obvious thing is that the subscriber column is numeric - but why would that make any difference?

Any ideas?

Jeff


Declare Function Popup

$Insert POPUP_EQUATES

RecKeys=@Record

OverRide='

OverRide=RecKeys

ReturnedKeys=Popup(@window,OverRide,'HEADENDS')

debug

RETURN 1


At 04 JUN 1998 05:05AM Carl Pates wrote:

Jeff,

What function is the debugger in when it's called?

Just an idea, but have you got the source code to the POPUP function? If you have take a look at the DblClickEditTable subroutine, and you'll see the Set_Property call to SORTEDCOL. If you debug this bit and compile it may help shed some light on what's happening, or give you more of an idea where the Debugger is cutting in?

cpates@sprezzatura.com

Sprezzatura Ltd

World Leaders in all things RevSoft

View this thread on the forum...

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