Alpha Video Training
Results 1 to 6 of 6

Thread: On-Click help needed

  1. #1
    "Certified" Alphaholic
    Real Name
    Thomas Patten
    Join Date
    Apr 2000
    Location
    Duluth, MN
    Posts
    1,494

    Default On-Click help needed

    Hi,

    I have a single character field on a form. I want it to change to X when it is clicked on, and if it is X, I want it to change to "" (blank).

    There is no On-Click event for the field - or I cannot find it. And if I did find it, would the following code work:

    If this.value=""
    this.value="X"
    end if
    If this.value="X"
    this.value=""
    end if
    end

    Thanks

    Tom

  2. #2
    Volunteer Moderator Peter.Greulich's Avatar
    Real Name
    Peter Greulich
    Join Date
    Apr 2000
    Location
    Boston, MA
    Posts
    11,648

    Default RE: On-Click help needed

    As you noted there is no "on click" event: You can try the OnArrive Event:

    If this.value=""
    this.value="X"
    ELSE
    this.value=""
    end if

  3. #3
    "Certified" Alphaholic
    Real Name
    Thomas Patten
    Join Date
    Apr 2000
    Location
    Duluth, MN
    Posts
    1,494

    Default RE: On-Click help needed

    Work Great. Maybe now I will sleep tonight!

    Thanks Peter

    Tom

  4. #4
    Volunteer Moderator drgarytraub's Avatar
    Real Name
    Dr. Gary Traub
    Join Date
    May 2000
    Location
    Boca Raton, FL
    Posts
    2,784

    Default RE: On-Click help needed

    If you put that same code into the OnPush event of a button, it will do what you want with a click

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

    Default RE: On-Click help needed

    gary,
    could you, for Ohlen's sake, program a Falstaff or Budweiser opening swoosh sound instead of that nagging click

  6. #6
    "Certified" Alphaholic
    Real Name
    Ohlen Cartmell
    Join Date
    Apr 2000
    Posts
    1,599

    Default RE: On-Click help needed

    Bud Light will do fine. Thanks for thinking of me Martin.

Similar Threads

  1. right click won't disable
    By martinwcole in forum Alpha Five Version 5
    Replies: 3
    Last Post: 04-16-2004, 08:08 PM
  2. Disable the right click
    By Ronald Anusiewicz in forum Alpha Five Version 5
    Replies: 3
    Last Post: 04-16-2004, 02:08 PM
  3. Double row click
    By Jeff, Richards in forum Alpha Five Version 5
    Replies: 5
    Last Post: 05-28-2003, 05:58 PM
  4. doubleRow Click
    By Jeff, Richards in forum Alpha Five Version 5
    Replies: 16
    Last Post: 02-15-2003, 07:47 AM
  5. Disable right click
    By Michael Humby in forum Alpha Five Version 4
    Replies: 3
    Last Post: 08-02-2000, 02:45 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
  •