How to trigger a tab key press programmatically?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • kai

    How to trigger a tab key press programmatically?

    Hi, All

    I try to trigger tab key press when enter a string in "customer ID" if
    its length is six, but I cannot find command to simulate TAB KEY press.
    PLease help.

    Thanks a lot

    Kai


  • Barry Young

    #2
    Re: How to trigger a tab key press programmaticall y?

    Try SendKeys {TAB},True.

    There are several events you can trap On Change, etc. Then check the Len()
    of what the control you have defined.

    Hope that helps..

    Barry


    "kai" <kailiang@earth link.net> wrote in message
    news:LPPXc.546$ w%6.311@newsrea d1.news.pas.ear thlink.net...[color=blue]
    > Hi, All
    >
    > I try to trigger tab key press when enter a string in "customer ID" if
    > its length is six, but I cannot find command to simulate TAB KEY press.
    > PLease help.
    >
    > Thanks a lot
    >
    > Kai
    >
    >[/color]


    Comment

    • Pat

      #3
      Re: How to trigger a tab key press programmaticall y?

      I may be completely misinterpreting your question, but if you are looking to
      programmaticall y move to the next field (simulating the tab key), look at
      ..SetFocus.
      HTH
      Pat


      "kai" <kailiang@earth link.net> wrote in message
      news:LPPXc.546$ w%6.311@newsrea d1.news.pas.ear thlink.net...[color=blue]
      > Hi, All
      >
      > I try to trigger tab key press when enter a string in "customer ID" if
      > its length is six, but I cannot find command to simulate TAB KEY press.
      > PLease help.
      >
      > Thanks a lot
      >
      > Kai
      >
      >[/color]


      Comment

      • kai

        #4
        Re: How to trigger a tab key press programmaticall y?

        Thanks, it works great!
        Kai
        "Barry Young" <youngbar@insig htbb.com> wrote in message
        news:jzQXc.5710 6$9d6.22167@att bi_s54...[color=blue]
        > Try SendKeys {TAB},True.
        >
        > There are several events you can trap On Change, etc. Then check the
        > Len()
        > of what the control you have defined.
        >
        > Hope that helps..
        >
        > Barry
        >
        >
        > "kai" <kailiang@earth link.net> wrote in message
        > news:LPPXc.546$ w%6.311@newsrea d1.news.pas.ear thlink.net...[color=green]
        >> Hi, All
        >>
        >> I try to trigger tab key press when enter a string in "customer ID" if
        >> its length is six, but I cannot find command to simulate TAB KEY press.
        >> PLease help.
        >>
        >> Thanks a lot
        >>
        >> Kai
        >>
        >>[/color]
        >
        >[/color]


        Comment

        Working...