Tip Bank

DevX - Software Development Resource

NumberOfCPUs – The number of processors

Const HKEY_LOCAL_MACHINE = &H80000002′ Return the number of processors” Requires the CheckRegistryKey routineFunction GetNumberOfCPUs() As Integer Dim keyName As String ‘ loop on the subkeys of HKEY_LOCAL_MACHINEHardwareDescriptionSystem ‘ CentralProcessor ‘

DevX - Software Development Resource

Avoid Double Quotes Inside Quoted Strings

Avoid putting double quotes inside of double quotes in your HTML code. You may not get a compiler error, but your script just won’t work. Instead, substitute single quotes for

DevX - Software Development Resource

Pass Variables From Page to Page

We can pass variables from page to page with the following script: This snippet of ASP script will also automatically create hidden fields that will be dumped into all following

DevX - Software Development Resource

Nest Frames Within Frames

If you’re writing complex frame sets by hand, it’s easy to get lost in “spaghetti code.” To keep a handle on the situation, don’t build the entire frame set at