Results 1 to 10 of 10

Thread: Can not divide in ASP!

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2000
    Location
    Gloucestershire, England
    Posts
    301

    Resolved Can not divide in ASP!

    This is driving me up the wall! I have been trying to get this ever so 'simple' code to work for the last hour!

    All I want to do is divide a number by 2

    this is what I have

    VB Code:
    1. <%
    2. ...
    3. if rstFound.bof = false then found_rows = rstFound.Fields("foundrows").value
    4. rstFound.Close
    5.  
    6. page_count = found_rows / 2
    7.  
    8. %>Found <%=page_count%>

    this does not work!! found_rows is 44 so page count should be 22. If I remove the /2 it works fine, else I get a 500 error.

    I've also tried * 0.5 and this does not work either
    Help!
    Last edited by Rick H; Apr 21st, 2006 at 12:56 AM.

Posting Permissions

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



Click Here to Expand Forum to Full Width