stargeek
PHP news website logo.
home    PHP scripts    articles    seo tools    links    search    contact    shop    realtors


VBS FAQ: VBScript Functions and their usage syntax







VBS FAQ: VBScript Functions and their
usage syntax

VBS FAQ: VBScript Functions and their
usage syntax
07/14/2004 06:31 PM




This is a GrokNews Entry: (what is grok?)





Similar Items

VBS FAQ: VBScript Functions and their usage syntax

Grok Headline matches for VBS FAQ: VBScript Functions and their usage syntax

VBScript FAQ: How do I add a literal
quote to my VBScript code?


VBScript FAQ: How do I add a literal
quote to my VBScript code?
05/31/2004 02:34 AM

VBScript FAQ: How do I retrieve the IP
Address using VBScript?


VBScript FAQ: How do I retrieve the IP
Address using VBScript?
07/01/2004 03:20 PM

Forgotten Functions: Lesser Used PHP
Functions


Forgotten Functions: Lesser Used PHP
Functions
08/12/2002 07:44 AM

VBScript Error with FTM


VBScript Error with FTM 09/02/2004 02:43 AM

Run 20clicln silent using vbscript


Run 20clicln silent using vbscript 08/14/2004 08:14 AM

Setting the pagefile via VBScript


Setting the pagefile via VBScript 02/15/2004 09:28 AM

Using VBScript to Modify All Objects in
the OU


Using VBScript to Modify All Objects in
the OU
07/10/2004 10:35 AM

VBScript to remove SMS 2.0 Client


VBScript to remove SMS 2.0 Client 05/04/2004 03:11 PM

Why VBScript Logical Operators Aren't


Why VBScript Logical Operators Aren't 07/15/2004 04:59 PM

If you've ever lost a monitor to VBScript (from frustrated punching, mine has dents), Eric Lippert provides some solace in that there's at least a reason why it behaves that way.

In JScript you can do something like this:

if (blah != null && blah.frob == 123)

and it works just fine. But in VBScript

If (Not Blah Is Nothing) And (Blah.Frob = 123) Then

Then if Blah actually is Nothing, this still crashes and dies, whereas JScript does not. What the heck is going on here?

What's going on is that VBScript is not logical. VBScript is bitwise. All the so-called logical operators work on numbers, not on Boolean values! Not, And, Or, XOr, Eqv and Imp all convert their arguments to four-byte integers, do the logical operation on each pair of bits in the integers, and return the result. If True is -1 and False is 0 then everything works out, because -1 has all its bits turned on and 0 has all its bits turned off. But if other numbers get in there, all bets are off.

I didn't say it was a good reason. I just said it was a reason.

Click here to comment on this entry


Delegating Control of an OU to a User
Using VBScript


Delegating Control of an OU to a User
Using VBScript
05/24/2004 12:11 AM

Send messages automatically through
VBScript


Send messages automatically through
VBScript
01/23/2004 01:21 AM

VBScript Tip: Using 'On Error Resume
Next'


VBScript Tip: Using 'On Error Resume
Next'
08/19/2004 10:46 PM

Using the Windows Common Dialog Control
with VBScript


Using the Windows Common Dialog Control
with VBScript
06/14/2004 06:15 PM

VBScript function for automating client
repairs


VBScript function for automating client
repairs
08/29/2004 09:15 AM

Publishing a Shared Folder in Active
Directory with VBScript


Publishing a Shared Folder in Active
Directory with VBScript
04/18/2004 08:22 AM

VBScript to modify Windows startup
timeout (Boot.ini)


VBScript to modify Windows startup
timeout (Boot.ini)
07/31/2004 03:18 PM

date_sun* PHP Functions


date_sun* PHP Functions 02/01/2005 09:08 PM

PHP: date_sunrise - Manual: I don't know how closely you all are looking at the PHP 5 function libraries, but I stumbled on this function today (and its sibling).

date_sunset() returns the sunset time for a given day (specified as a timestamp) and location. The latitude, longitude and zenith parameters default to the date.default_latitude, date.default_longitude and date.sunset_zenith configuration options, respectively.

The latitude defaults to North. So, if you want to specify a South value, you must pass a negative value. The same note applies to longitude, which defaults to East.

I love PHP, but I really wonder about things like this. We've talked before about some problems with the language (especially compared to Perl), like inconsistent function naming, and — as this function perhaps demonstrates — having too many functions in the core.

Isn't this something that PEAR could have handled? Does this need to be built into the core? What percentage of PHP programmers have a need for this?


PHP-Functions-Mail-0.03


PHP-Functions-Mail-0.03 04/11/2005 08:45 AM

PHP-Functions-Mail-0.04


PHP-Functions-Mail-0.04 04/11/2005 08:45 AM

ASP Functions and Subprocedures


ASP Functions and Subprocedures 07/07/2002 09:36 PM
Stickysauce Jul 7 2002 8:43PM ET

PHP Posix_getpw* Functions


PHP Posix_getpw* Functions 05/24/2002 11:27 AM

MySQL Gets Functions in Java


MySQL Gets Functions in Java 12/19/2003 03:39 PM
Java Coward writes "Eric Herman and MySQL's Brian "Krow" Aker have released code to allow the DBMS MySQL to run Java natively inside of the database. The code ...

Advanced JavaScript functions


Advanced JavaScript functions 01/05/2003 03:04 AM
CNET Jan 5 2003 1:02AM ET

Tap into advanced JavaScript functions


Tap into advanced JavaScript functions 01/03/2003 02:50 AM
CNET Jan 3 2003 1:02AM ET

Using the Built-in Functions of IE to
Block Pop-up Ads


Using the Built-in Functions of IE to
Block Pop-up Ads
08/09/2004 06:48 PM

Iadstools.dll Functions for Scripting


Iadstools.dll Functions for Scripting 07/08/2004 07:16 PM

PHP Functions Essential Reference


PHP Functions Essential Reference 06/09/2002 06:15 PM
For those that are looking for good PHP documentation that explains more about the purpose than just the usage of PHP functions and extensions as it is available in the official PHP manual, this book can certainly be a good acquisition.

IBM DB2 XML functions overflows
(#NISR05012005H)


IBM DB2 XML functions overflows
(#NISR05012005H)
01/05/2005 06:39 PM
NGSSoftware Insight Security Research (Jan 05 2005)

Add More System Functions to Your
PocketPC


Add More System Functions to Your
PocketPC
02/19/2004 06:10 PM

Six MySQL/PHP functions to streamline
development


Six MySQL/PHP functions to streamline
development
07/08/2002 10:50 PM
CNET Jul 8 2002 10:13PM ET

YellowPages.ca offers new search
functions


YellowPages.ca offers new search
functions
05/27/2004 11:08 PM
globetechnology.com May 28 2004 2:53AM GMT

Java DBMS functions for MySQL 0.2


Java DBMS functions for MySQL 0.2 12/22/2003 05:21 PM
Provides Java DBMS functions for MySQL

The poptasticDB database access
functions for PHP 1.0 v0.4


The poptasticDB database access
functions for PHP 1.0 v0.4
12/21/2003 03:47 AM
A set of simple, cross-platform database libraries for PHP

C++ Tricks of the Trade: Friend
Functions


C++ Tricks of the Trade: Friend
Functions
06/26/2002 01:02 PM
Friend classes in C++ give us access to non-member functions or other classes. In this article Kais shows us exactly how and why we should use friend classes and functions. 5 Free Bonuses!!! "Attention All Web Developers" Now includes 5 FREE eBooks to help you promote your ConMan website! "This is one of the best pieces of software that we have ever used. It's quick, streamlined, and allowed us to have a fully working site packed with articles in just 3 hours" Ever wanted to run your own content driven web site? Well now you can with ConMan: the fast, flexible and secure web site + admin suite. Try it for free!Click here. Get notified when we post new content: New Forum Threads 1. strange hyperlinkcolumn error 2. MySQL, MS-SQL2000, DB2 & Oracle Benchmark 3. PHP to EXE file 4. ASP Across multiple pages... 5. BuildaGate Suite Technology - MySQL database builder 6. ADO Help 7. pass a form data from web page to SQL 8. "Creating a content feed" - question 9. Mytch About The Newsletter Popup! 10. Article Discussion: An Introduction To RMI With Java More Forum Threads... Other Recent Articles PHP Date + Time Primer // by Ryan Schwiebert - 19th Jun 2002

Java DBMS functions for MySQL 0.1


Java DBMS functions for MySQL 0.1 12/19/2003 11:39 AM
Provides Java DBMS functions for MySQL

SAP adds more RFID functions to SCM
tools


SAP adds more RFID functions to SCM
tools
04/19/2004 09:39 AM
SAP AG intends to give businesses a real-time view of what's happening to their inventory with an upgrade to its supply chain management (SCM) tools, it announced Monday.

Word: Learn How to Use the Proofreading
Functions


Word: Learn How to Use the Proofreading
Functions
02/10/2004 02:47 AM
Tech-Recipes Feb 10 2004 7:11AM GMT

Take advantage of advanced JavaScript
functions


Take advantage of advanced JavaScript
functions
01/04/2003 01:58 AM
CNET Jan 4 2003 1:02AM ET

Bourne shell script functions


Bourne shell script functions 08/06/2004 12:31 AM
Tech-Recipes Aug 6 2004 4:48AM GMT
Grok Description matches for VBS FAQ: VBScript Functions and their usage syntax
GrokA matches for VBS FAQ: VBScript Functions and their usage syntax

VBS FAQ: VBScript Functions and their usage syntax

The following phrases have been identified by the grok system as matching this entry:

















Also check out:


Grok

Ipod Porn on the
Rise

Brief Abstract of
Wikipedia's
Mesothelioma Cancer
page

Get first aid
instructions in your
cell phone

IE is crap
JSPWiki gains
podcasting support

Why the Revolution
won't be televised

Hulk Eye For The
Puny Human Guy

XML-Deviant: Browser
Boom

Features: Mastering
DocBook Indexes

Is This The Next
iPod?

Brando Ends Film
Career As Elderly
Woman (AP)

Chip Implanted in
Mexico Judicial
Workers (AP)

Bush Heads to
Suburbs Seeking
Votes (AP)

[HV-MED] DoS in
Microsoft SMS Client

DOOM 3 Goes Gold
Apple's 3Q Profit
Beats Estimates (AP)

Oracle Holds First
Post-Trial Meeting
(AP)

AMD Posts 2Q
Earnings of
$32.2 Million
(AP)

CNET to Buy Webshots
in Deal Worth Up to
$70 Million
(Reuters)

Judge Denies Motion
to Dismiss Napster
Case (Reuters)

Is Another Casino
Merger in the Works?

Judge Lets Napster
Investor Case
Proceed -- VCs
Everywhere Freak Out

My Networks
Blogging AlwaysOn?
New Joiwiki
The Original Blogg
Butler shows BBC was
right - Dyke

New York Times
Public RSS Feeds
Launched

Intel reports Q2
revenue up 18%

Adaptec buys Snap
Appliance for $100M

Online media will
generate $7B by '08

IBM moves to expand
analytics offering

Specifix eyes new
version of Linux for
corporate users

Microsoft delays
some security
updates

Selling Like
Gothcakes

Bush as Presidential
Simulacrum

ziproxy 1.3c
Keep It Simple Stock
Quote 3.5

Xrefactory 1.6.7
(For C and Java)

getmail 4.0.0b4
(Development)

AbiWord 2.0.8
RSP 1.0
Rootkit Hunter 1.1.2
PolarViewer 0.9.0
WebGUI 6.1.0
Scilab 3.0
G5 to power new iMac
Highlights from
Apple's Q3 financial
conference call

IBM not expecting
Oracle-PeopleSoft
impact

Briefly: Date set
for 'Doom 3'

Earnings reports
hint at IP
networking growth

Oracle upbeat on
growth

AMD meets
second-quarter
expectations

Xinkro
AVFS: A Virtual
Filesystem

what is grok?