[progress Communities] [progress Openedge Abl] Forum Post: Understanding How To Use...

  • Thread starter Thread starter goo
  • Start date Start date
Status
Not open for further replies.
G

goo

Guest
11.6.2 Ok, I find my self as a dummy when it comes to work with .Net syntax and how to use System.Net with more when it comes to a class inherits from another. HttpWebRequest Inherits WebRequest and implements ISerializable. I am able to use WebRequest, but strugle understanding the use of HttpWebRequest. i.e - WebRequest ------------------------------------------------------ Using System.Net.*. def var oReq as class System.Net.WebRequest no-undo. oReq = WebRequest:Create(" http://www.google.com"). This works swell, but I would like to use a CookieContainer, so I need to use HttpWebRequest. def var oHttpReq as class System.Net.HttpWebRequest no-undo. oHttpReq = HttpWebRequest:Create(" http://www.google.com") . <--- no go, wrong type But this works: oHttpReq = CAST( System.Net.HttpWebRequest:Create(" http://www.google.com") , System.Net.HttpWebRequest), Why? and how should I understand that I need to cast it to something it is from start? Is there any documentation I would need to read to understand how Progress implements this?

Continue reading...
 
Status
Not open for further replies.
Back
Top