Results 1 to 2 of 2

Thread: Val??

  1. #1
    Steff Guest

    Default Val??

    Ok, here&#039s my problem. If I Request.QueryString("Var"), I get a subtype of CHAR...but I need a subtype of INT, because when I pass this Parameter to an SQL server it doesn&#039t travel, that is, by the time it get&#039s to SQL procedure, it&#039s NULL.<BR><BR>Now my VBscript version does work, but my JScript version doesn&#039t... and I don&#039t particularly like VB &#039cos it&#039s nasty, so does anyone know how I can change a variable of subtype CHAR to subtype INT? <BR><BR>BTW: str.value isn&#039t it.<BR><BR>I can &#039bodge&#039 it at the SQL end, or I can use the VBscript version, but what I&#039d really like, is the JScript command!! <BR><BR>Help?

  2. #2
    siddhartha shukla Guest

    Default RE: Val??

    &nbsp;<BR>use parseint function to convert the string value into integer<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