if condition

Discussion in 'ASP General' started by dave, Jan 30, 2004.

  1. dave

    dave Guest

    hi
    i have got one field in sql server 2000 database.
    field1 char 50

    in one record, i m storing value -1

    but it doesnt satisfy following condition

    if (rs("field1")) = cstr("-1") Then
    response.write ("true")
    end if

    i already checked its value by response.write and
    print -1 only..
    then y its above condition is false???
    thanx
    dave, Jan 30, 2004
    #1
    1. Advertising

  2. dave

    Ray at Guest

    See my reply to your first thread about this.

    Ray at home

    "dave" <> wrote in message
    news:6e1e01c3e6e7$76cb1380$...
    > hi
    > i have got one field in sql server 2000 database.
    > field1 char 50
    >
    > in one record, i m storing value -1
    >
    > but it doesnt satisfy following condition
    >
    > if (rs("field1")) = cstr("-1") Then
    > response.write ("true")
    > end if
    >
    > i already checked its value by response.write and
    > print -1 only..
    > then y its above condition is false???
    > thanx
    Ray at, Jan 30, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mohammed  A khader

    one-hot encoding and fale-safe condition.

    Mohammed A khader, Jan 24, 2005, in forum: VHDL
    Replies:
    12
    Views:
    3,291
    Mike Treseler
    Feb 1, 2005
  2. Daniel

    while condition

    Daniel, May 20, 2005, in forum: VHDL
    Replies:
    7
    Views:
    3,520
    Ralf Hildebrandt
    May 23, 2005
  3. Replies:
    0
    Views:
    427
  4. -
    Replies:
    12
    Views:
    686
    Remon van Vliet
    Jun 15, 2005
  5. Bill W.
    Replies:
    13
    Views:
    289
    Phillip Gawlowski
    May 9, 2011
Loading...

Share This Page