Code: Select all
TRY
Response := (HttpWebResponse)Request:GetResponse()
SR := StreamReader{Response:GetResponseStream()}
ResponseData := SR:ReadToEnd()
CATCH Wex AS System.Net.WebException
SR := StreamReader{Wex.Response:GetResponseStream()}
ResponseData := SR:ReadToEnd()
THROW Exception{ResponseData}
FINALLY
SR:Close() // line 61
END TRY
warning XS0165: Use of unassigned local variable 'SR' 61,3 EasyHttp.prg
Why?
Karl