must Contain a @


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: must Contain a @

  1. #1
    Paul Guest

    must Contain a @


    Hi,

    I need to make sure that on my e-mail field it Contain a @

    what code would i use in the valid event ?

    Thanks

    Paul

  2. #2
    Shanice Guest

    Re: must Contain a @


    Paul,

    you can use the next line in your valid

    return (AT('@',this.value) # 0)

    The at funciton looks of the character specified is found and where , so
    it returns its place , when not found it returns 0

    greetz.

    Shanice

    "Paul" <paul@tpgplc.co.uk> wrote:
    >
    >Hi,
    >
    >I need to make sure that on my e-mail field it Contain a @
    >
    >what code would i use in the valid event ?
    >
    >Thanks
    >
    >Paul



  3. #3
    Tamar E. Granor Guest

    Re: must Contain a @

    On 13 Feb 2002 03:26:35 -0800, "Paul" <paul@tpgplc.co.uk> wrote:

    >
    >Hi,
    >
    >I need to make sure that on my e-mail field it Contain a @
    >
    >what code would i use in the valid event ?
    >
    >Thanks
    >
    >Paul


    Since you probably want to make sure that there's exactly one "@"
    symbol, I'd use something like:

    RETURN OCCURS("@",This.Value) = 1

    Tamar

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center