devxlogo

October 22, 1999

Function for Adding Sales Tax

Question: What function would I use to take a given amount of money and add 6% sales tax? Answer: In JavaScript you could use: function addSalesTax(SubTotal){ return SubTotal * 1.06}

Using NetAddUsers

Question: I created a program to Add User Account to my NT Server. It reads from a text file which provides the user info. Everything works fine, except that the

Accessing a Workstation in a Domain

Question: I would like to know how to access a workstation which is configured and logged on to an NT domain, from another PC in a workgroup environment? Most of

Concatenate Variables Containing Numbers

Question: I need to know how to concatenate variables containing numbers, that is, string them together one after the other. Every method I know simply adds the various numbers together

Rotate an Image

Question: I’m creating a drag and drop program to design kitchens. How can I rotate a single picture using JavaScript? Answer: You can’t rotate an image using JavaScript. JavaScript doesn’t

Insert Persistent Breakpoints

VB won’t let you save a breakpoint when you have a lengthy debugging session. Use Debug.Assert to create persistent breakpoints that trigger when you are in the environment, but not

Print the Frame From JavaScript

You can print the entire document from the JavaScript using Parent.Print() function. Similarly, to print a frame from JavaScript, you can use parent.framename.print() in the code. For example, this code