Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Computer Certification > Microsoft Certification > Beginning VB Scripting

Reply
Thread Tools

Beginning VB Scripting

 
 
=?Utf-8?B?bWF0bHlu?=
Guest
Posts: n/a
 
      10-08-2007
Where would be a good place to inquire about how to code Mathematical
Calculations in VB Script?

Specifically, how to code to perform:

SA = 2PIr^2 + 2PRrh

Thanks
 
Reply With Quote
 
 
 
 
David Brown
Guest
Posts: n/a
 
      10-22-2007
Hello matlyn,

Most programming languages (VBS included) don't automatically assume that
you want to multiply when you put variables next to each other. You must
specify each and every operation.

You'll also need to define PI.

SA = 2 * PI * r^2 + 2 * PR * r * h

Then for readability, you may want to add parenthesis:

SA = (2 * PI * r^2) + (2 * PR * r * h)


Microsoft.public.scripting.vbscript would be a good place to post a scripting
question.

Most beginning scripting books would cover the coding of calcualtions.

Microsoft's book is: Microsoft Windows Scripting Self-Paced Learning Guide

Windows Script 5.6 Documentation -
http://www.microsoft.com/downloads/d...displaylang=en


Microsoft Script Center:
http://www.microsoft.com/technet/scr...r/default.mspx


good luck



> Where would be a good place to inquire about how to code Mathematical
> Calculations in VB Script?
>
> Specifically, how to code to perform:
>
> SA = 2PIr^2 + 2PRrh
>
> Thanks
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
index of string from beginning of line vs beginning of file Jesse B. Ruby 9 03-27-2010 04:04 PM
Using a Scripting Language as Your Scripting Language DaveInSidney Python 0 05-09-2005 03:13 AM
VPN beginning question Gordon Montgomery Cisco 6 01-04-2005 08:47 PM
Python is the best and most popular general purpose scripting language; the universal scripting language Ron Stephens Python 23 04-12-2004 05:32 PM
Parse an xml file with line breaks in the beginning Raj Mudaliar Perl 0 07-14-2003 06:00 PM



Advertisments