Skip to content

Instantly share code, notes, and snippets.

@fushnisoft
Created February 11, 2013 11:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fushnisoft/4753904 to your computer and use it in GitHub Desktop.
Save fushnisoft/4753904 to your computer and use it in GitHub Desktop.
how to add an <All> or <Empty> item to a Clarion FileDrop
! 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