Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Type Mismatch problem with call to VBscript function
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00833281
Message ID:
00833285
Vues:
27
Hi Richard,

Just try

IF myTest("CONTACTS") = True Then

Also there is a potential problem in the myCurrent_Record = Session("Unique_ID") line. What if the Session variable is not defined at this point?

Also I would advise you to register on tek-tips forum and read FAQ Debugging ASP applications in ASP forum. You also more likely to find answers there...

>I was wondering if anyone could help me resolve this error message.
>
>Error Type:
>Microsoft VBScript runtime (0x800A000D)
>Type mismatch: 'MyTest'
>/rick/omnia_act_initializations.inc, line 60
>
>here's the section of /rick/omnia_act_initializations.inc
>
><%
>IF (myCurrent_Record = Session("Unique_ID")) THEN
>	response.write("about to call MyTest")
>	IF MyTest("CONTACTS") THEN
>	ELSE
>	END IF
>ELSE
>END IF
>
>
>Line 60 is, of course,
>IF MyTest("CONTACTS") THEN
>
>
>
>The MyTest function is defined as
>
><SCRIPT LANGUAGE="vbscript">
>	Function MyTest(cTable)
>		Dim lReturnValue
>		lReturnValue = TRUE
>		
>		MyTest = lReturnValue
>	End Function
></SCRIPT>
>
>
>Can anyone could help me resolve this error message?
>
>TIA,
>Rick
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform