Glad you found the answer! Normally just oREQUEST.form() will work, but, the DumpVars function is doing some other things within itself. What's the purpose of this routine you're creating, BTW??
>OK, I found the answer: change form(lcFormVar) to form(lcFormVar).item()
>
>Makes me wonder why it (retrieving the form variable value) works OK elsewhere; including this form when posted to default.asp but handled directly within main.prg. Oh well.
>
>Hank
>
>>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