Dan: Used to check an entered string against column values. The variable v000_string_found result feeds a SWITCH/ENDSW where "Y" or "N" leads you to the appropriate path.

{EEP header}
---eep: on exit
--ctrl: cid_ve_search_string
...
------------------------------------------------------------------perspective --
 {Compare a test string against existing names in roster format. }

-------------------------------------------------------------show prep .......
  CLS ; SET TRACE OFF ; SET DEBUG OFF

--------------------------------------------------------------safeties .......
  SET VAR zv_safety_debug TEXT = 'on'
  IF zv_safety_debug = 'off' THEN ; SET DEBUG ON ; ENDIF
  DEBUG SET TRACE ON

----------------------------------------------------------------string test -- {Test to find the search string within the [psalut_t:salut_p_rost_fam] column.}

-------------------------------------------------search_string entered .......
  IF v000_search_string IS NOT NULL THEN

   {Test for search_string in database. }

    SET ERROR MESSAGE 2059 OFF
      SELECT (COUNT(*)) +
        INTO v000_string_count INDICATOR iv1 +
        FROM psalut_t +
       WHERE salut_p_rost_fam CONTAINS .v000_search_string

    SET ERROR MESSAGE 2059 ON

   {Flag a string found or not found. }

    IF v000_string_count <> 0 THEN
      SET VAR v000_string_found = 'Y'
    ELSE
      SET VAR v000_string_found = 'N'
    ENDIF

----------------------------------------------no search string entered .......
  ELSE
    PROPERTY cid_pb_exit SET_ACTIVE_CONTROL 'TRUE'
    PROPERTY cid_pb_exit MAKECLICK ' '
    GOTO endProcess
  ENDIF

... your stuff

Best, Bruce

Bruce A. Chitiea
SafeSectors, Inc.
1142 S Diamond Bar Blvd # 442
Diamond Bar CA 91765-2203

[email protected]
(909) 238-9012 m



------ Original Message ------
From "'Daniel Goldberg' via RBASE-L" <[email protected]>
To "[email protected]" <[email protected]>
Date 3/27/2025 12:25:38 PM
Subject [RBASE-L] - Trigger Search button when hit enter

I have a form with a variable edit field. I also have a search button.



Currently when the user types in the variable edit, they must grab the mouse and click on the search button to perform the search.



I am trying to find a way so if the user types in the variable edit field and hits enter, it will perform the search. I am drawing a blank today.



Anyone have ideas on how to do this?



TIA






Dan Goldberg








--
For group guidelines, visit http://www.rbase.com/support/usersgroup_guidelines.php
---
You received this message because you are subscribed to the Google Groups "RBASE-L" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/rbase-l/BY3PR19MB50274CD4E93F746AAC9BF29ED4A12%40BY3PR19MB5027.namprd19.prod.outlook.com <https://groups.google.com/d/msgid/rbase-l/BY3PR19MB50274CD4E93F746AAC9BF29ED4A12%40BY3PR19MB5027.namprd19.prod.outlook.com?utm_medium=email&utm_source=footer>.

--
For group guidelines, visit 
http://www.rbase.com/support/usersgroup_guidelines.php
--- You received this message because you are subscribed to the Google Groups "RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/rbase-l/em9a6ab032-ead1-42d6-ab35-5c27592f230c%402d1fcea1.com.

Reply via email to