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.
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....
Re: sub error when displaying web page
Thanks the following worked:
window.resizeTo 800,600
Re: sub error when displaying web page
cool I solved something. only took 250 posts :bigyello: