Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I pass & return an array to form
Message
From
18/02/2004 12:35:09
 
 
To
18/02/2004 07:16:31
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00878231
Message ID:
00878394
Views:
22
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 )
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform