Main Menu

literacy worksheets middle schoolHamilton beach prepstar food processor 70550Food for jointspc oem softwareeBook: Adobe Photoshop CS2 Classroom in a Book(Adobe Press)Inidan Pharmacy VesicareChemicals in our food and bodiesGarden Planner Home Edition 2.2Inidan Pharmacy SomaInidan Pharmacy Diltiazem CreamInidan Pharmacy Malegra DXT (Sildenafil + Duloxetine)Inidan Pharmacy MethotrexateMerge Excel Workbooks 29science worksheets metals rustworksheets on chemical reactionsAoA Audio Extractor Platinum 2.0GoldSim 9.6 SP4Inidan Pharmacy CephalexinInidan Pharmacy DiarexInidan Pharmacy XenicalInidan Pharmacy AcularDVD Studio Pro 4MediaChance Dynamic Photo HDR 4.5worksheets for 3rd gradeeBook: Laptops For Dummies Dec 2004Imaris 6.2epson c84 smears printInidan Pharmacy Fusidic Acidbaby eastern painted turtlesSupreme food group floridaInidan Pharmacy InvegaAbylon CRYPTDRIVE 6.50 MultilingualAPT Computer Solutions Apt Golf 1.4Windows Doctor v1.7Inidan Pharmacy Alesse (Ovral L)VIRTUAL KEYBOARD MULTILANGUAGE 3.1Inidan Pharmacy TheophyllineInidan Pharmacy ActonelInidan Pharmacy ClarinexInidan Pharmacy ZyprexaInidan Pharmacy Kamagra Oral JellyStephen p moss and food serviceworksheets for distance rate time activityMicrosoft Macro Assembler 32 v7.0Inidan Pharmacy TrileptalAnzioWin 15.2Inidan Pharmacy Pro ED Pack (Viagra Professional + Cialis Professional)Inidan Pharmacy SumentaDog food vhhc pet foodInidan Pharmacy GeodonInidan Pharmacy Viagra Super Active+Inidan Pharmacy Otikfree Ear DropsInidan Pharmacy LevonorgestrelInidan Pharmacy PremarinInidan Pharmacy SleepWellInidan Pharmacy Liv.52 CapsulesAmond DVD to PSP Converter 2.1Hampson-Russell CE8 R4.2 x64Stuart and florida and food deliveriesInidan Pharmacy VasakaRoyal canine cat food discount priceInidan Pharmacy Lamisil CreamInidan Pharmacy Macrobidfree worksheets for editingInidan Pharmacy 100% Pure Okinawan Coral Calciumyard to feet worksheetFood and beverage worksheetInidan Pharmacy AravaFresh food to youInidan Pharmacy Mega HoodiaNuclear Coffee VideoGet 4.0Intuit QuickBooks 2006 Premier EditionInidan Pharmacy Gasex SyrupInidan Pharmacy Shuddha GugguluInidan Pharmacy SeptilinCoffeeCup Web Video Player 4.6What food do india people eatXilisoft Video Editor 1.0Inidan Pharmacy CasodexMultiQC 6.0Inidan Pharmacy Shallakiblank guitar fretboard stampInidan Pharmacy DostinexInidan Pharmacy Quick-DetoxInidan Pharmacy Tagaraqueen elizabeth ii worksheetInidan Pharmacy LasunaWomans baseball cardnals tshirts junk foodGlobal Mapper 11.0 x64Tony hartmann greenville sc cisco foodsPriscos fine foodsTomatoes organic baby food shippingCrispers menu food nutritional valuesTosca reno clean food
VB Scripting
Access denied error when resizing a HTA PDF Print E-mail
Written by Winfred DeKreij   

When I resized a HTA with the following code:

 Sub Window_onLoad
     window.resizeTo 500,200
End Sub

I came across the following error:

Access Denied
Code: 0
Do you want to continue running scripts on this page?

This was due to a timing issue when loading the file. The Window_onLoad tries to change a property of the HTA, while the HTA is not completely loaded yet. You can solve this problem by adding a short timeout like this:

Sub Window_onLoad
Window.SetTimeout "Window.ResizeTo 500, 200", 500
End Sub

The last "500" here is the time it waits before executing the code.

Image of the error message:

 
VB Script that changes the CDROM drive letter PDF Print E-mail
Written by Winfred DeKreij   

'
'    Script creates a local file that gets called by Diskpart to change the CDROM drive to Z:
'
'    

Read more...
 
VB Script that creates shortcuts on remote machines PDF Print E-mail
Written by Winfred DeKreij   

'
'
'This script creates a drive mapping to C$ of a list of servers, checks if a certain file exists and creates a
'shortcut in the startup menu to that file, then removes the mapping.
'
'
'

Read more...
 
Bubble Sort in VBS PDF Print E-mail
Written by Winfred DeKreij   

This is the code required to sort an array in alphabetical order (you need UCase to convert the lower case to upper case, because VB sorts on ASCII value and the value of upper case characters is higher than that of lower case characters.

For i = (UBound(arrNames) - 1) to 0 Step -1
For j= 0 to i
If UCase(arrNames(j)) > UCase(arrNames(j+1)) Then
strHolder = arrNames(j+1)
arrNames(j+1) = arrNames(j)
arrNames(j) = strHolder
End If
Next
Next

Bubble sort is not the most efficient way for sorting and should not be used on large arrays.

For more information on bubble sort: http://en.wikipedia.org/wiki/Bubble_sort

 


 
 
Design by augs-burg.de & go-vista.de
 
 
     
 
   
Design by windows vista forum and energiesparlampen