HttpWebRequest method called 'Method'

This forum is meant for questions and discussions about the X# language and tools
Post Reply
leighproman
Posts: 60
Joined: Tue Oct 11, 2016 8:56 pm
Location: UK

HttpWebRequest method called 'Method'

Post by leighproman »

Hi

Am in the process of trying to get our application compiling in X# and have a problem.

I'm trying to make use of the System.Net.HttpWebRequest class.
One of its methods is called 'Method' and when I try to use:

oWebReq:Method:="POST"

I get:

error XS9002: Parser: mismatched input ':' expecting EOS
error XS9002: Parser: mismatched input ':='

Presumably this is because its expecting a Method definition?
Is there a way around that?

Thanks

Leigh
User avatar
Phil Hepburn
Posts: 743
Joined: Sun Sep 11, 2016 2:16 pm

HttpWebRequest method called 'Method'

Post by Phil Hepburn »

does '@@' in front of Method work ?

This is usually the good advice from our friend Karl - sorry for jumping in Karl ;-0)

Cheers,
Phil.
leighproman
Posts: 60
Joined: Tue Oct 11, 2016 8:56 pm
Location: UK

HttpWebRequest method called 'Method'

Post by leighproman »

Yep - that works perfectly.

Thanks for the quick reply.

Leigh
Post Reply