Dim complexResult As Tuple (Of Boolean, String)
msgbox("This worked: " & complexResult.item1 & ", and the actual result was " & complexResult.item2 & ", thank you")
Function complexFunction(town As string,country as String) as Tuple(Of Boolean, String)
'This function will do some Webservices look ups and try to get the State name of the town, and country. If is succeeds it returns the True, and the State name it found. 'Otherwise it just returns false in the first part of the Tuple.
'TODO service checks
if serviceResult then
Return New Tuple (Of Boolean, String) ('True',serviceResult.stateName)
end if
Return New Tuple (Of Boolean, String) ('False','')
End function
Kbytes Home | Privacy Policy | Contact us | Testing Area
© 2004 - 2024 1 Oak Hill Grove Surbiton Surrey KT6 6DS Phone: +44(020) 8123 1321