Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Multiple Return Values
Message
De
22/12/2001 22:05:16
 
 
À
06/12/2001 17:11:20
Todd Wolfe
Certified Marketing Services
Kinderhook, New York, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00590869
Message ID:
00597794
Vues:
19
Todd,
There is also another approach - Memo-like strings and using Evaluate function.
The idea is simple - first of all you need a function for transforming all types of values to theis 'evaluate' equivalent.
Transform() will do the thing in most cases, but for strings you need a special coding - you should add quotes around them, and to substitute all quotes in them with ['+chr(39)+'] (remove sqare brackets)

So multiple values you want to return can be added to one string, separated by chr(13)
(it looks like a special form of CSV)

when you recive such type of result you can use MLINE() and EVALUATE() to get each of the values.

If something is unclear to you mail me for assistence (I read Universal Thread forums really rarely)
Regards
Zlatin Zlatev,
MCSD (VS6)

Make solutions, not programs!

Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform