In diese Datei schreiben Sie eine VBScript Funktion, zum Beispiel
Der nachfolgende Code zeigt eine VBScript Funktion die einen Stringwert der aktuellen Uhrzeit zurückgibt.
The code below shows a VBScript function that returns a string representation of the current time.
Sie können mit einer "Stop" Anweisung in der VBScript Funktion den Debugger aktivieren.
Da wunderte ich mich, warum dieses Modul meines Gadgets nicht unter Windows7 RC funktioniert und musste feststellen, daß dort nicht nur die VBScript Funktion des CreateObject deaktiviert ist, sondern jetzt auch das JavaScript Pendant, welches zumindest in Vista funktioniert.
There I was surprised why this module of my Gadget won't function under Windows7 RC and had to state that not only the VBScript function of the CreateObject, but now also the counterpart in Javascript, which works at least in Vista, is deactivated.
Unterstützung für Windows Dienste und Webanwendungen - direktes aufrufen einer VBScript Funktion durch einen Windows Dienst oder Webanwendung
Support for Windows Services and Web Applications - call a VBScript function directly from a Windows Service or a Web Application
Die Parameterübergabe an die VBScript Funktion erfolgt als Wertübergabe von Strings, ebenso wird der Funktionswert der VBScript Funktion bei der Rückkehr als String in die GuiXT-Variable gestellt.
All parameters are passed to the VBScript function as string values, and the return value is stored as a string value in the specified script variable.