In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

Syntax Error

Xailer professional forum in English
User avatar
emeasoft
Posts: 1041
Joined: Wed Apr 01, 2009 4:12 pm
Location: emeasoft
Contact:

Syntax Error

Postby emeasoft » Tue Oct 30, 2018 8:24 pm

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
User avatar
ignacio
Site Admin
Posts: 8450
Joined: Mon Apr 06, 2015 8:00 pm
Location: Madrid, Spain
Contact:

Re: Syntax Error

Postby ignacio » Wed Oct 31, 2018 9:53 am

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,
Ignacio Ortiz de Zúñiga
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info

Return to “English”