Created
February 11, 2013 11:13
-
-
Save fushnisoft/4753904 to your computer and use it in GitHub Desktop.
how to add an <All> or <Empty> item to a Clarion FileDrop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
! Add the custom row in the reset method | |
FDBLocation.Reset PROCEDURE | |
CODE | |
! Add <All> entry to the queue | |
IF Records(SELF.Q) = 0 | |
Clear(SELF.Q) | |
SELF.Q.PRE:DisplayFieldName = '<All>' | |
Add(SELF.Q) | |
END | |
PARENT.Reset | |
! Then later on when the selection occurs detect if the user has selected our custom row and deal with it. | |
FDBLocation.TakeNewSelection PROCEDURE | |
CODE | |
PARENT.TakeNewSelection | |
IF SELF.Q.PRE:DisplayFieldName = '<All>' | |
Clear(PRE:Record) | |
! Do whatever else you need to do here I guess! | |
END |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment