Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I pass & return an array to form
Message
De
18/02/2004 12:35:09
 
 
À
18/02/2004 07:16:31
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00878231
Message ID:
00878394
Vues:
23
how do I pass & retrun an array to form

In addition to what the others have told you, I like to have a class whose sole purpose is to return arrays in an object property like so:
DEFINE CLASS xparameters AS line
  Height = 17
  Width = 100
  Name = "xparameters"

  *-- An array to hold the return values
  DIMENSION aparameters[1]

  PROCEDURE Init
    LPARAMETERS taArray
    ACOPY(taArray, This.aParameters)
  ENDPROC
ENDDEFINE
Then, to return an array, you just use code like this:
RETURN CREATEOBJECT( 'xParameters', @laArray )
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform