Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2004
    Location
    Germany
    Posts
    38

    Grin Input Mask (IP Address)

    Hi,

    I'm trying to create with the action:

    IPAddress = Dialog.MaskedInput("IP-Adresse WebServer", "Bitte IP-Adresse des WebServers eingeben:", "IP-\Adresse\: ###\.###\.###\.###", "", MB_ICONQUESTION, " ");

    to get an valid string from the user.
    But the result in the edit field is:
    "IP- dresse: , , , "

    I'm located in Germany. Are system settings responsible for the missing 'A' and the substitution from '.' to ',' ?

    Any help is appreciated and thx in advance.
    Thomas

  2. #2
    Join Date
    Sep 2004
    Location
    Germany
    Posts
    38
    Hi,
    sorry, I solved the display problem - just use "\\" inside a string (mea culpa).

    But I have an additional question:

    How can I provide the correct number of digits in case not all 3 values in an ip-address are filled:
    no problem with : 192.168.123.453, but
    how to handle: 192.168.0.21

    Again: Any help is appreciated

    Regards
    Thomas

  3. #3
    Join Date
    Aug 2006
    Location
    Brisbane, Australia
    Posts
    66

    Cool

    That IP you're seeing isn't the true IP address. I have yet to work out how to retrieve the correct ip.

  4. #4
    Join Date
    Jun 2005
    Posts
    470
    there are 3 ways that I see
    - don't use a masked input, use normal one and later validate it
    - put a placeholder only for the last digit, like
    00#\.00#\.00#\.00#
    - or use ###\.###\.###\.### and just inform the user that four 3-digit groups are required and missing digits should be filled with 0's so numbers like 21 should be entered as 021.

    In any case you should validate the input because even ###\.###\.###\.### does not guarantee a valid entry - it will accept something like 500.500.500.500. As the masked input can't gurantee a valid input and you should validate it in any case, better use non-masked

Similar Threads

  1. Input with mask.. Can't set default value?
    By kpsmith in forum AutoPlay Media Studio 5.0
    Replies: 2
    Last Post: 09-27-2006, 08:57 PM
  2. Input Box Wierdness
    By Roboblue in forum AutoPlay Media Studio 6.0
    Replies: 9
    Last Post: 11-18-2005, 01:20 PM
  3. URL Address Input
    By sidd in forum AutoPlay Media Studio 5.0
    Replies: 0
    Last Post: 07-14-2004, 03:21 PM
  4. Lorne’s two great input validation scripts
    By csd214 in forum AutoPlay Media Studio 5.0
    Replies: 2
    Last Post: 06-09-2004, 09:13 AM

Posting Permissions

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