Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 6 of 6
  1. #1
    Join Date
    Jun 2005
    Posts
    27

    Input and active Tab button

    how to make to go to the next input field when I press Tab button?

  2. #2
    Join Date
    Aug 2003
    Posts
    2,427
    Focus moves from one object to another determined by the z order of objects on the page that can accept input e.g. input, listbox, combobox.

    You can set the focus to a particular object initially by using the Page.SetFocus action.

    The way to see the z order of your objects is to look at the object browser which also allows you to drag the objects up and down to change their tab order.

    p.s. Look at "Tab order" in the helpfile.

  3. #3
    Join Date
    Jun 2005
    Posts
    27
    thx
    Code:
    if e_Key == 9 then Page.SetFocus("input2");
    end
    Last edited by rybosom; 01-13-2008 at 09:59 AM.

  4. #4
    Join Date
    Aug 2003
    Posts
    2,427
    Hmmm... I don't understand why you would want to do that and I can also imagine that it might cause unforeseen problems, depending on where you put the code, but if it does what you want that's all that counts

  5. #5
    Join Date
    Jun 2005
    Posts
    27
    and next question => how type only one mark: "," or "." in the same input field?
    for example: you can type only "0123456789,." marks but I want to detect that "dot" is exist and don't allow for type comma yet.

  6. #6
    Join Date
    Aug 2003
    Posts
    2,427
    Have a look at this post if you don't want to use an input mask. You can validate each character as it is typed in.

    You can include a test for a "." or "," codes 188 & 190 I believe and if you want to restrict input to a single "." or "," perhaps use a variable set to false initially and then set to true within the test when one of the characters is input. If the variable is true, reject the input.

Posting Permissions

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