Solved

Cbyte returns error

Posted on 2000-03-28
2
241 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 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Microsoft SQL ADO Conn Issue 6 59
One field not displaying content (ASP Classic) 8 35
alert(innerHTML); 8 39
Html value of radio 14 44
I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:   The Exchange of informatio…
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…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

730 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