Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


What functions are compatible with which OS?

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,2924
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> What functions are compatible with which OS?
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 What functions are compatible with which OS? - 5/9/2005 6:05:00 AM   
  durex

 

Posts: 21
Score: 0
Joined: 3/8/2005
From:
Status: offline
I didnt realize up until now, that apparantly certain vbscript functions are compatible with certain versions of windows. For example, I found that the 'Left()' and 'Right()' string functions are not recognized by Windows 2000, but are by XP and 2003.

Does anyone know if there is a list that shows what functions are compatible with what OS?

Secondly, what function should I use as an alternative to return a certain number of characters of a string?

Thanks!
 
 
Post #: 1
 
 Re: What functions are compatible with which OS? - 5/9/2005 7:44:02 AM   
  mbouchard


Posts: 1916
Score: 16
Joined: 5/15/2003
From: USA
Status: offline
It is not dependent on the OS, in most cases, but on the version of WSH. Check out the WSH help document in my sig, look under vbscript/reference/Version info and you will find a list there. Also, I have not had any issues with using Left or Right on 2000 and if I remember correctly, on NT4. To get a rough idea what version you have installed copy the following line into a script and see what you get.

msgbox wscript.version, alternativly, you can get the version by looking at vbscript.dll found in the windows folder.

(in reply to durex)
 
 
Post #: 2
 
 Re: What functions are compatible with which OS? - 5/12/2005 12:49:23 AM   
  durex

 

Posts: 21
Score: 0
Joined: 3/8/2005
From:
Status: offline
What if Im running the code in an HTA.. does anything else come into play then? Such as the version of Internet Explorer thats installed on the PC?

Thanks again for the help!

(in reply to durex)
 
 
Post #: 3
 
 Re: What functions are compatible with which OS? - 5/12/2005 1:20:04 AM   
  TNO


Posts: 1302
Score: 12
Joined: 12/18/2004
From: thenewobjective.com
Status: online
Version Information:

http://msdn.microsoft.com/library/en-us/script56/html/vtoriversioninformation.asp?frame=true

(in reply to durex)
 
 
Post #: 4
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> What functions are compatible with which OS? Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts