Alpha Video Training
Results 1 to 2 of 2

Thread: Handling Tab Stops

  1. #1
    VAR
    Real Name
    Martin W. Cole
    Join Date
    Apr 2000
    Location
    Terrell, Texas (near Dallas)
    Posts
    5,954

    Default Handling Tab Stops

    I have a form with many fields, and many of the fields have code that fires at the onarrive event, e.g., showing an array. While on this form, which attempts to tightly control and screen user input, these actions are useful and necessary, once the operator has basically finished with the form, but needs to make a change to one field object, it can be very irritating - especially since many have "parentform.next()" at the ondepart event to force where she goes next. If she changes one of the fields and ENTER's then the code at the next field fires.

    I came up with the following script, placed in the onarrive event for the last object in the tab order, which turns off all tab stops on the form for all field objects, which renders the "Save" button as the recipient of "parentform.next()"

    obj=topparent.this
    count1=obj.children()
    for i=1 to count1
    ---child_obj=obj.child(i)
    ---class=child_obj.class()
    ---if class="Field"
    ------child_obj.object.tabstop=.f.
    ---end if
    next

    My operators have been very grateful for this small change, as now they can edit a field, and it will always go back to the save button.

  2. #2
    VAR
    Real Name
    Martin W. Cole
    Join Date
    Apr 2000
    Location
    Terrell, Texas (near Dallas)
    Posts
    5,954

    Default RE: Handling Tab Stops

    sorry - posted in wrong place

Similar Threads

  1. Image Handling
    By Bob Whitaker in forum Archived Wishlist
    Replies: 2
    Last Post: 11-11-2004, 11:13 PM
  2. error handling
    By dik_coleman in forum Alpha Five Version 6
    Replies: 14
    Last Post: 10-02-2004, 09:39 AM
  3. Handling XML Transactions
    By Chris.Tanti in forum Alpha Five Version 5
    Replies: 3
    Last Post: 04-04-2003, 01:43 AM
  4. Handling rejection.
    By Blake in forum Alpha Five Version 5
    Replies: 7
    Last Post: 02-20-2003, 02:16 AM
  5. Handling Tab Stops
    By martinwcole in forum Code Archive
    Replies: 1
    Last Post: 11-04-2001, 07:22 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •