Results 1 to 4 of 4
  1. #1

    Weird ASP code behavior driving me crazy

    I have a function that takes a date from a website, converts it to a format the computer can understand and then shows it on my website.

    In all the test code it works fine, including a page that does just that. But on the main site, the very same function returns the date without a space between the date and time so it shows like 3/3/201110:48:36 AM

    Why would the space mysteriously vanish when I'm using the same source date and same functions?

  2. #2
    I have one clue, I've found that for some reason the HTML code on the page with the problem is being received in all uppercase but there are no UCase functions on that page. Is it possible that another function working with the HTML variable may be changing it to uppercase? Do functions in ASP work ByVal or ByRef by default? Can you change it like in VB apps?

  3. #3
    Wow that was it, a previous function working with the HTML variable was ByRef by default and changing the original variable to uppercase. I've found that you can use ByVal/ByRef in ASP and changed it to ByVal and everything works.

    All this time I thought I was going crazy.

  4. #4
    Join Date
    Jul 2003
    Location
    laredo
    Posts
    303
    Aren't we all?

    Hey thanks for sharing your solution.

Similar Threads

  1. CentOS Weird behavior, Maybe I got hacked? [URGENT]
    By AsadMoeen in forum VPS Hosting
    Replies: 12
    Last Post: 03-01-2011, 02:34 PM
  2. Weird behavior on CSF
    By hD-Scott in forum Hosting Security and Technology
    Replies: 2
    Last Post: 06-25-2010, 10:11 PM
  3. weird behavior: class const not working
    By grabmail in forum Programming Discussion
    Replies: 3
    Last Post: 01-06-2006, 09:01 AM
  4. WEIRD ftp upload behavior
    By cyman in forum Hosting Security and Technology
    Replies: 0
    Last Post: 07-05-2004, 12:26 AM
  5. Weird server behavior after moving from PHP-driven website to pure HTML
    By zappp in forum Hosting Security and Technology
    Replies: 5
    Last Post: 09-09-2003, 01:48 PM

Posting Permissions

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