Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Aspvars crashes when submitting form
Message
De
22/07/2004 15:03:35
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
ActiveVFP
Titre:
Aspvars crashes when submitting form
Divers
Thread ID:
00927136
Message ID:
00927136
Vues:
68
Hi Claude,

I created a simple html form with a textbox and a submit button, with the action being to submit the form to default.asp with action of aspvars (XP SP1, IIS6 local):
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>

<body>
<form action="http://localhost/avfpwebservice/default.asp?action=aspvars" method="post" name="frmGetName" target="_self" id="frmGetName">
  <p>
    <input name="txtmyname" type="text" id="txtmyname" size="25" maxlength="25">
</p>
  <p>
    <input name="btnSubmitName" type="submit" id="btnSubmitName" value="Submit">
</p>
</form>
</body>
</html>
The result when I run it, either directly from Dreamweaver MX 2004, or when saved into the local website is an error in dumpvars:
Error Type:
dumpvars err#= 107 line= 1510 Operator/operand type mismatch.107 Operator/operand type mismatch. .NULL. .NULL. .NULL. .NULL. .NULL. c:\prosysplus\courses\avfpws\avfpwebservice\avfpwebservice.dll (0x800A006B)
c:\prosysplus\courses\avfpws\avfpwebservice\avfpwebservice.dll
/avfpwebservice/default.asp, line 6
It looks like it's this line from dumpvars:
	lcSTR=lcSTR+[    <TR><TD><b> ]+ lcFormVar +[ </b></TD><TD> ]+crlf;
		+lcVar +[</TD></TR>]+crlf
I played with it long enough (put a transform() around the preceding statement where lcVar receives it value from oResponse.form(lcFormVar)) to discover that what is being returned is an object, for both the textbox and the button.

Pretty strange, since in your samples, clearly the value, not the object, is being returned.

Any thoughts?

thanks,

Hank Fay
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform