static public string VerifyAddress( ref string AddressLine1, ref string AddressLine2, ref string City, ref string State, ref string ZipCode, ref string Country)So, although it may be not a good practice, my colleague (who wrote this method) returns new values using parameters passed by references. When I debug that DLL, I can see the new values, however, my call
lcResult = loBridge.Invokestaticmethod("Siriusware.Library.Cass", "VerifyAddress", @Address1, @Address2, @City, @State, @Zipcode, @Country) ?Address1 ?ZipCode ?lcResultdoes not return the new values for the address components.
>>do wwDotNetBridge >>local loBridge as wwDotNetBridge >>loBridge = createobject("wwDotNetBridge", 'V4') >>if vartype(loBridge) = 'O' >> if loBridge.LoadAssembly("Siriusware.Library.dll") >> >> Address1 = "2170 S Josephine St Unit 1" >> Address2 = "" >> City = "Denver" >> State = "CO" >> Zipcode = "80210" >> Country = "USA" >> >> * string sResult = Cass.VerifyAddress( ref Address1, ref Address2, ref City, ref State, ref Zipcode, ref Country); >> >> loCass = loBridge.CreateInstance("Cass") >> if isnull(loCass) >> ? loBridge.cErrorMsg >> return >> endif >> >> *loPop.Connect("mail.gorge.net",587,.f.) >> >> >> * loPop.Connect("mail.gorge.net",587,.f.) >> *? loBridge.InvokeMethod(loPop,"Connect","pop3.gorge.net",110,.f.) >> >> ? loCass.VerifyAddress(@Address1, @Address2, @City, @State, @Zipcode, @Country) >> endif >>endif >>>>