Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_databases thread: function unrecognized


Message #1 by "shane conrow" <shane_conrow@h...> on Wed, 30 May 2001 16:54:48
I've tried writing this function a few different ways, and I keep getting 

led back to the same error:



Microsoft VBScript runtime error '800a01f4' 

Variable is undefined: 'getChildren' 



/TDTemplates/discussion.asp, line 193 



The line calling it is:



		tCheck = getChildren(rsMessage("ID"), 0)



and the function is defined:



<SCRIPT LANGUAGE=vbscript>

<!--



function getChildren(Id, Tab)



----       snip       ----

----stuff happens here----



	getChildren = true

	

end function

-->

</script>





Anyone have any ideas where I went wrong?
Message #2 by "Daniel O'Dorisio" <dodorisio@h...> on Thu, 31 May 2001 14:22:13 -0400
try using <% and %> instead of <script language=vbscript> and </script>



or you could also specify Runat to be Server..so:

<script language=vbscript runat=server>

 that might make a difference



daniel





Daniel O'Dorisio

dodorisio@h...

xxx-xxx-xxxx





-----Original Message-----

From: shane conrow [mailto:shane_conrow@h...]

Sent: Wednesday, May 30, 2001 4:55 PM

To: ASP Databases

Subject: [asp_databases] function unrecognized





I've tried writing this function a few different ways, and I keep getting

led back to the same error:



Microsoft VBScript runtime error '800a01f4'

Variable is undefined: 'getChildren'



/TDTemplates/discussion.asp, line 193



The line calling it is:



		tCheck = getChildren(rsMessage("ID"), 0)



and the function is defined:



<SCRIPT LANGUAGE=vbscript>

<!--



function getChildren(Id, Tab)



----       snip       ----

----stuff happens here----



	getChildren = true



end function

-->

</script>





Anyone have any ideas where I went wrong?



Message #3 by Greg Griffiths <griffiths@x...> on Thu, 31 May 2001 21:55:42 +0100
quotes are also useful :



<script language=3D"vbscript" runat=3D"server">



At 14:22 31/05/01 -0400, you wrote:

>try using <% and %> instead of <script language=3Dvbscript> and </script>

>

>or you could also specify Runat to be Server..so:

><script language=3Dvbscript runat=3Dserver>

>  that might make a difference

>

>daniel

>

>

>Daniel O'Dorisio

>dodorisio@h...

>xxx-xxx-xxxx

>

>

>-----Original Message-----

>From: shane conrow [mailto:shane_conrow@h...]

>Sent: Wednesday, May 30, 2001 4:55 PM

>To: ASP Databases

>Subject: [asp_databases] function unrecognized

>

>

>I've tried writing this function a few different ways, and I keep getting

>led back to the same error:

>

>Microsoft VBScript runtime error '800a01f4'

>Variable is undefined: 'getChildren'

>

>/TDTemplates/discussion.asp, line 193

>

>The line calling it is:

>

>                 tCheck =3D getChildren(rsMessage("ID"), 0)

>

>and the function is defined:

>

><SCRIPT LANGUAGE=3Dvbscript>

><!--

>

>function getChildren(Id, Tab)

>

>----       snip       ----

>----stuff happens here----

>

>         getChildren =3D true

>

>end function

>-->

></script>

>

>

>Anyone have any ideas where I went wrong?




  Return to Index