Solved

Cbyte returns error

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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

809 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