Dim oEClient As Object Dim bstrResponseCode Set oEClient = CreateObject("MyObject") oEClient.GetResponseCode bstrResponseCode display.Text = display.Text + "Response Code: " + bstrResponseCode + Chr(13) + Chr(10)The problem I have in Visual FoxPro, is that the GetReponseCode() method is not able to store the value in my variable. The definition should be a variant.
LOCAL loEClient LOCAL lcResponseCode loEClient=CREATEOBJECT('MyObject') loEClient.GetResponseCode(lcResponseCode) ? 'Response Code: ' + lcResponseCodeThe program works but always skipped over assignating the value to lcResponseCode. So, whatever lcResponseCode is before calling the method, it'll remain as is after.