Weird values...

Results 1 to 2 of 2

Thread: Weird values...

  1. #1
    Join Date
    Dec 1969

    Default Weird values...

    Hello there, i just encountered a weird problem while trying to test the following condition:<BR><BR>if (rsListCode(0) = ValeurActive) then<BR><BR>this is verified in a loop for each record in the recordset rsListCode, but always returned false even though i had a matching value, so i tried to output the values to see what was happening:<BR><BR>"rs:" & &#060;%=valeuractive=2%&#062; & &#060;%=rsListCode(0)=2%&#062; & &#060;%=rsListCode(0)=valeuractive%&#062;<BR><BR>t he result of the above link for the value which was supposed to be correct was:<BR><BR>"rs:" & True & True & False<BR><BR>so my question can A=2, B=2, and A!=B ?

  2. #2
    Join Date
    Dec 1969
    Los Angeles, CA

    Default Simple

    if (clng(rsListCode(0)) = clng(ValeurActive)) then<BR><BR><BR>ofcourse if it is a string then you have to use cstr<BR><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