Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to display parameters passed?
Message
From
09/05/2005 15:04:52
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01012215
Message ID:
01012243
Views:
29
Hi, Nadya.

>I wanted to display values of all passed parameters in a program. Something like:
>
>lnParms = aparameters(laParameters)
>for lnI = 1 to lnParms
>  =messagebox(laParameters[m.lnI,1] + " value: " + transform(laParameters[m.lnI,2]))
>next
>
Not nice, but... what about:
MyFunction( 1, "2", 3 )

Function MyFunction( tx1, tx2, tx3 )

For q=1 to Pcount()
	? "tx"+Transform(q) +" =  "+ Transform( Evaluate( "tx"+Transform(q) ) )
Next
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform