Navigation: ABC Library Reference > QueryVisualClass > QueryVisualClass Methods >====== Reset ( reset the dialog for display:QueryVisualClass ) ====== | ![]() ![]() |
Reset ( forcereset ), DERIVED
| Reset | Resets the QueryVisual object. |
| forcereset | A numeric constant, variable, EQUATE, or expression that indicates whether to conditionally or uncondition-ally reset the window. A value of one (1 or True) uncon-ditionally resets the window; a value of zero (0 or False) only resets the window if circumstances require, such as a new sort on browse object or a changed reset field on a browse object. If omitted, forcereset defaults to zero (0). |
Implementation:
The Reset method calls the WindowMangaer.Reset and handles the logic for enabling and disabling the Load and Save buttons. The Reset is called by the TakeFieldEvent and TakeAccepted methods.
Example:
QueryVisual.TakeFieldEvent PROCEDURE
CODE
CASE FIELD()
OF FEQ:QueryNameField
CASE EVENT()
OF EVENT:NewSelection
SELF.Reset
END
OF FEQ:SaveListBox
CASE Event()
OF EVENT:AlertKey
IF Keycode() = MouseLeft2
GET(SELF.Queries,CHOICE(FEQ:SaveListBox))
SELF.QC.Restore(SELF.Queries.Item)
SELF.ResetFromQuery
POST(EVENT:Accepted,FEQ:Ok)
END
OF EVENT:NewSelection
GET(SELF.Queries,CHOICE(FEQ:SaveListBox))
FEQ:QueryNameField{Prop:ScreenText} = SELF.Queries.Item
Update(FEQ:QueryNameField)
SELF.Reset
END
END
RETURN PARENT.TakeFieldEvent()
See Also: TakeFieldEvent, TakeAccepted





