Page 1 of 1

Syntax Error

Posted: Tue Oct 30, 2018 8:24 pm
by emeasoft
Hello Xailers,

The compiler is returning an error when compiling the following line:

WinHttp := CreateObject( "WinHttp.WinHttpRequest.5.1" )
WinHttp:Option( 9, 512 ) // gives a "Syntax error" when compiling

Does anyone knows why this error is happening?

Thanks in advance,
Juliano

Re: Syntax Error

Posted: Wed Oct 31, 2018 9:53 am
by ignacio
emeasoft wrote:Hello Xailers,

The compiler is returning an error when compiling the following line:

WinHttp := CreateObject( "WinHttp.WinHttpRequest.5.1" )
WinHttp:Option( 9, 512 ) // gives a "Syntax error" when compiling

Does anyone knows why this error is happening?

Thanks in advance,
Juliano


Hi Juliano,

Problem found. Please modify the xailer.ch file lines 20 and 21 from this:

#translate BYREF =>
#translate OPTIONAL =>

To this:

#xtranslate BYREF =>
#xtranslate OPTIONAL =>

Regards,

Re: Syntax Error

Posted: Wed Oct 31, 2018 10:24 am
by emeasoft
Hi Ignacio!

It worked! Thank you very much!

Regards,
Juliano