>I have two applications that need to verify a job number data that resides on an AS400 database. I thought it would be better to have a custom class method that either app could access to run the SPT. All is well except my SPT returns two fields of information. How do I get these two pieces of information back to my calling apps? I know how to return one value but not two values without maybe two separate method calls.
Yöu can pass a parameter by reference, and change it in the method.
obj = CreateObject("MyClass")
Value1 = 0
Value2 = 0
obj.MyMethod(@Value1, @Value2)
? Value1, Value2
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)