sle_find


Ancestor singlelineedit

Comments DW Search V1.0

Modified 6/12/99 10:26:11

Library dwsearch.pbl

Model
sle_find
PRIVATE:
datawindow idw_Search
string is_ColName
boolean ib_Init = FALSE
integer ii_LastRow
initdw (as_colname, as_colname) returns boolean

Functions

initdw

Description Set a datawindow instance variable with the datawindow passed to this method. Also, set the column that in which the developer wants the search to be performed.
Return boolean
  • TRUE, Initialized OK
  • FALSE, Initialize failed
  • Access public
    Arguments
    Argument DataType Description
    adw_Search datawindow Datawindow in which the search is to be performed
    as_ColName string Column name to search for the entered value.

    Events

    key_press
    Description Whenever a key is pressed, Check to see if the arrow up or down has been pressed. If it has then scroll the datawindow up or down accordingly. Otherwise we Post the Modified event for this object. We want the modified event to fire after every key is pressed, but the Modified event is only fired after the user tabs away from the field or mouse clicks somewhere else on the window.

    modified
    Description Check to see if the data entered in the sle is found in the appropriate column in the datawindow. If so, scroll to the row in the datawindow.

    Document Generated: 6/12/99 10:26:40