string functions (?)

Results 1 to 4 of 4

Thread: string functions (?)

  1. #1
    john doe Guest

    Default string functions (?)

    i got rs("x") that is a auto num.<BR>and i got request("y") - which y is an integer...==&#062; "y" is a string<BR><BR>how do i make a condition - rs("X") os a num - <BR>and the request("Y") is a string:<BR><BR>if rs("x") = request("y") then<BR>***<BR>don&#039t get any true statement...<BR>please...<BR>thanks,<BR>bye

  2. #2
    ActiveALLI Guest

    Default RE: string functions (?)

    if cint(rs("x")) = cint(request("y")) then<BR><BR>Note if Y is not an integer or is NULL the Cint will fail.<BR>Cint is Convert to Integer

  3. #3
    Ryan S Guest

    Default RE: string functions (?)

    Here is a trick I use quite often.<BR><BR>if rs("x") & "" = request("y") & "" then<BR><BR>Hope that helps.<BR>

  4. #4
    john doe Guest

    Default RE: string functions (?)

    thanks to both of you...<BR>i succed myself in the second way...<BR>but thanks~<BR>:-)

Posting Permissions

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