Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Returning Values form Custom Class Method
Message
De
29/06/2005 12:02:04
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
29/06/2005 11:56:46
Steven Dyke
Safran Seats USA
Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01027425
Message ID:
01027428
Vues:
22
This message has been marked as the solution to the initial question of the thread.
>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)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform