Solved

Cbyte returns error

Posted on 2000-03-28
2
237 Views
Last Modified: 2008-03-06
I've got a randomizing function which uses the CByte function to convert a random number based on the number of seconds in the time.

This worked perfectly on my development machine Win2000 (IIS5) but returns a type mismatch error on another web server (NT4, IIS4).

Could this be something to do with the way the server is formatting the time?
0
Comment
Question by:stevenm
2 Comments
 
LVL 7

Accepted Solution

by:
RBertora earned 100 total points
ID: 2663608
Yes that is the case , you have to set up your locale-specific settings to match those of your other machine.
You can set the system locale using the Control Panel utilities.

You might find that it differs in the time/date separator ie ':' as opposed to '/' or something trivial like that.

ie make sure that the format being returned by your time function is the same as in your system locale.

Rob;-)
0
 

Author Comment

by:stevenm
ID: 2663646

I thought as much.  Thanks for confirming though, just saved me a bit of time trying to debug.

I've got it working now.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now