huiyi_ch wrote: ↑
Tue Mar 20, 2018 2:03 pm
Why this program is not compiled, always prompt: invalid lvalue ':
Code: Select all
local WinHtt:=Win_OleCreateObject( "WinHttp.WinHttpRequest.5.1")
Please help me!
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.