Results 1 to 4 of 4

Thread: sub error when displaying web page

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Nov 2004
    Posts
    22

    sub error when displaying web page

    I have the following html code

    <HEAD>
    <title>Fillers Reports</title>
    <meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
    <meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
    <meta name="vs_defaultClientScript" ontent="JavaScript">
    <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
    <SCRIPT language="VBSCRIPT">
    <!--
    Sub btnClose_OnClick
    Close
    End Sub
    -->
    </SCRIPT>
    <SCRIPT>
    window.resizeTo(600,800);
    </SCRIPT>
    </HEAD>


    when my web page loads I get the following error:

    Cannot use parentheses when calling a sub.
    Dave G

  2. #2
    Hyperactive Member tailz's Avatar
    Join Date
    Jul 2002
    Posts
    306

    Re: sub error when displaying web page

    For VB, that normally means, remove the () when calling a Sub rather than a function.

    As for javascript, dunno.

    Try

    Code:
    window.resizeTo 800,600
    or put () after Sub btnClose_OnClick

    could be that also....

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Nov 2004
    Posts
    22

    Re: sub error when displaying web page

    Thanks the following worked:

    window.resizeTo 800,600
    Dave G

  4. #4
    Hyperactive Member tailz's Avatar
    Join Date
    Jul 2002
    Posts
    306

    Re: sub error when displaying web page

    cool I solved something. only took 250 posts

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width