huiyi_ch wrote: ↑Tue Mar 20, 2018 2:03 pm
Hello,
Why this program is not compiled, always prompt: invalid lvalue ':
Code: Select all
#include <hmg.ch>
Function Main
local WinHtt:=Win_OleCreateObject( "WinHttp.WinHttpRequest.5.1")
WinHtt:open("POST","http://www.hmgforum.com/ucp.php?mode=login")
MSGDEBUG(WinHtt:Option(4))
MSGDEBUG(WinHtt:OPTION(6))
WinHtt:OPTION(6)=.F.
Return
Please help me!
Thanks
In this case (setting the property with the argument) you should, instead of
try to use
As Marek noted, the compiler expects a method that can not be assigned a value.
Therefore, for such properties, you need to change some syntax, precede the name of the property with an underscore and add the last argument: the value that we assign to the property.
Edward.