Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Cbyte returns error

Posted on 2000-03-28
2
Medium Priority
?
245 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 7

Accepted Solution

by:
RBertora earned 300 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

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

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

I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
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/…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

636 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