Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing Arrays from DO FORM
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01436626
Message ID:
01436727
Views:
52
Looks great!

Thanks a bunch!


>I want to pass an Array BACK to a calling Procedure....
>
>Calling Procedure ->
>
>
>DO FORM frmlookup TO laLookup
>
>
>where laLookup is an array....

>
>We use the following parameter object class:
>
>
>**************************************************
>*-- Class:        xparameters (e:\books\tipsbook\ch02\ch02.vcx)
>*-- ParentClass:  line
>*-- BaseClass:    line
>*-- Time Stamp:   08/14/99 01:41:13 PM
>*
>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
>*
>*-- EndDefine: xparameters
>**************************************************
>
>
>In order to return the array, all you need is a single like of code:
>
>
>RETURN CREATOBJECT( 'xParameters', @laArray ) 
>
Tommy Tillman A+ NetWork+ MCP
Previous
Reply
Map
View

Click here to load this message in the networking platform