Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Aspvars crashes when submitting form
Message
From
22/07/2004 15:03:35
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveVFP
Title:
Aspvars crashes when submitting form
Miscellaneous
Thread ID:
00927136
Message ID:
00927136
Views:
69
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
Next
Reply
Map
View

Click here to load this message in the networking platform