Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing param list to function but have it arrive as arr
Message
From
19/06/2002 10:08:49
 
 
To
19/06/2002 09:24:31
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00670055
Message ID:
00670112
Views:
30
Hi:)
>
>Record Set? Means a whole record? It can be stores in an object usen scatter name. So you can pass just the object.

I mean when using commands that apply to an entire table such as replace all
eg

REPLACE ALL myfield WITH myfunc('apple','orange','pear')

In this example I am expecting an output of a single value but I want to do the processing in the function using an array.

>>I guess I will end up passing the list as a single string and parsing it into an array in the function. That give me the encapsulation I want but next time I use it I will probably send the wrong type of parameter..sigh
>
>But then you have to find out the types of the single item. This is just an other dead.

True but since I expect to be mainly passing field names as my parameter list it will do for now.

eg

myfunc('myfield1,myfield2,myfield3')





>
>>Your use of ALINES is much nicer they must have changed the command between ver 6 and 7
>Yeap, they do. (BTW this is out of Ut the last week or so)
>>
>>
>>Thanks for the tip:)
>
>Ypu are welcome
>
>Agnes
Previous
Reply
Map
View

Click here to load this message in the networking platform