Solved

Cbyte returns error

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
SQL Server Web Traffic Limitations 4 43
Time/Date Query 11 34
JSON error 4 38
Summernote required 3 58
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…
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 video discusses moving either the default database or any database to a new volume.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

746 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

16 Experts available now in Live!

Get 1:1 Help Now