HoustonGuy
Programmer
I have written simple vbscript to evoke a file dialog box. It works on my Windows 98 development machine but not on any other 6 Windows 98 machines we have set up for testing.
The vbscript returns an error that the object cannot be created. I cannot find reference to it in the registry to check my ProgID.
Cmdial32.dll is in each sytem registry AND is a basic .dll for windows. Is this a simple matter of registering the .dll? How can this .dll NOT be registered and still allow the file dialog box to open for other programs?
Here is the sample code - you can't get any more basic than this....
<HTML>
<BODY BGCOLOR = "white">
<FORM NAME = "MyForm">
<INPUT TYPE=text NAME = "myText">
<P>
<INPUT TYPE=button NAME = "myButton" VALUE="Evoke File Dialog Box">
<SCRIPT FOR="myButton" EVENT="onClick" LANGUAGE="vbscript">
dim cdl1
dim txtfile
set cdl1 = createobject("MSComDlg.CommonDialog"
cdl1.MaxFileSize = 10000
cdl1.showopen()
Myform.mytext.value = cdl1.filename
</SCRIPT>
</FORM>
</BODY>
</HTML>
Any help is appreciated. Cody ford
Data Mining, Cleansing and Reporting Specialist
codyjford@hotmail.com
SQL, VB6, Seagate Info/Crystal Reports
The vbscript returns an error that the object cannot be created. I cannot find reference to it in the registry to check my ProgID.
Cmdial32.dll is in each sytem registry AND is a basic .dll for windows. Is this a simple matter of registering the .dll? How can this .dll NOT be registered and still allow the file dialog box to open for other programs?
Here is the sample code - you can't get any more basic than this....
<HTML>
<BODY BGCOLOR = "white">
<FORM NAME = "MyForm">
<INPUT TYPE=text NAME = "myText">
<P>
<INPUT TYPE=button NAME = "myButton" VALUE="Evoke File Dialog Box">
<SCRIPT FOR="myButton" EVENT="onClick" LANGUAGE="vbscript">
dim cdl1
dim txtfile
set cdl1 = createobject("MSComDlg.CommonDialog"
cdl1.MaxFileSize = 10000
cdl1.showopen()
Myform.mytext.value = cdl1.filename
</SCRIPT>
</FORM>
</BODY>
</HTML>
Any help is appreciated. Cody ford
Data Mining, Cleansing and Reporting Specialist
codyjford@hotmail.com
SQL, VB6, Seagate Info/Crystal Reports