Cint Not working

Results 1 to 2 of 2

Thread: Cint Not working

  1. #1
    Join Date
    Dec 1969

    Default Cint Not working

    Why does this not work<BR><BR>strTime = Mid(strParse, intStart, intEnd)<BR>intMinutes = cint(strTime)<BR>Response.write intMinutes & " Minutes"<BR><BR>All I get is the " Minutes" <BR>And I know that strTime has a value of 683 in it.

  2. #2
    SPG Guest

    Default How sure are you?

    Try the following two things:<BR>1) Put a cStr() on your intMinutes when you write it. It&#039s not an integer at that point in time anyway.<BR>2) Instead of writing intMinutes, write strTime. There aren&#039t any extra spaces in there, are there? (And you didn&#039t set "on error resume next, did you?)<BR><BR>Okay, *three* things... -ahem- No One Expects The SPGish Inquisition! [Sorry, just had to be done after that error handling bit.]<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