Windows Vista Forums

Creating a class in a HTA
  1. #1


    Hz Guest

    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

  2. #2


    James Whitlow Guest

    Re: Creating a class in a HTA

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

    > 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

  3. #3


    Hz Guest

    Re: Creating a class in a HTA

    James Whitlow wrote:

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

    >> 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

Creating a class in a HTA problems?

Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving from class C to class B ip address scheme, any tips(DC/DNS) markm75g Server General 1 14 Feb 2010
When a class is both an inherited class of another, and alsoimplements an interface method Curious .NET General 1 14 Aug 2009
win32_pingstatus class / dns class IT Staff PowerShell 2 28 Oct 2008
Creating a Custom Enumerator in a Base Class Charles Law .NET General 1 19 Sep 2008
Creating a WMI class urkec PowerShell 5 29 Jan 2008