Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - Creating a class in a HTA

Reply
 
Old 03-12-2009   #1 (permalink)
Hz


 
 

Creating a class in a HTA

Is it possible? I can't find any vbscript documentation for HTA. This
throws an error:

Sub Window_Onload
Class foo
End Class
End Sub

I am moving a cool vbScript I wrote, which has a class for unit
convertion, to a HTA. Now it looks like I have to rewrite the class to
using stupid functions.

--
..::[ Hz ]::.

My System SpecsSystem Spec
Old 03-12-2009   #2 (permalink)
James Whitlow


 
 

Re: Creating a class in a HTA

"Hz" <hz@xxxxxx> wrote in message
news:e0FCIh4oJHA.5412@xxxxxx
Quote:

> Is it possible? I can't find any vbscript documentation for HTA. This
> throws an error:
>
> Sub Window_Onload
> Class foo
> End Class
> End Sub
>
> I am moving a cool vbScript I wrote, which has a class for unit
> convertion, to a HTA. Now it looks like I have to rewrite the class to
> using stupid functions.
I think the problem might be that you are putting your class inside of a
subroutine.


My System SpecsSystem Spec
Old 03-12-2009   #3 (permalink)
Hz


 
 

Re: Creating a class in a HTA

James Whitlow wrote:
Quote:

> "Hz" <hz@xxxxxx> wrote in message
> news:e0FCIh4oJHA.5412@xxxxxx
Quote:

>> Is it possible? I can't find any vbscript documentation for HTA. This
>> throws an error:
>>
>> Sub Window_Onload
>> Class foo
>> End Class
>> End Sub
>>
>> I am moving a cool vbScript I wrote, which has a class for unit
>> convertion, to a HTA. Now it looks like I have to rewrite the class to
>> using stupid functions.
>
> I think the problem might be that you are putting your class inside of a
> subroutine.
>
You know, I was thinking the same thing when I read my posted question.
And you are right. Thank you!

--
..::[ Hz ]::.
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
When a class is both an inherited class of another, and alsoimplements an interface method .NET General
win32_pingstatus class / dns class PowerShell
Creating a Custom Enumerator in a Base Class .NET General
Class not registered Vista General
Creating a WMI class PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46