Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Array passing in SQL UDF
Message
From
08/01/2000 15:40:15
 
 
To
08/01/2000 14:47:29
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00314970
Message ID:
00314978
Views:
44
>I've fixed this problem by using a parameter object but would like to see if someone can explain why this happens.
>
>I have a UDF:
>
>
>FunctionX
>
>Parameter pArray
>

Try adding <b>EXTERNAL ARRAY pArray</b>

>For nCnt=1 to aLen(pArray,1)
>   Seek(pArray[nCnt,1],"ATABLE")
>EndFOr
>
>Return
>
>
>This work:
>
>FX="FunctionX(@myarray)"
>&FX
>
>This causes an error:
>
>FX="FunctionX(@myarray)"
>Select * From SomeTable Where &FX to cursor SomeCursor
>
>The error come from the UDF saying that pArray.prg is not found.
>
>Any ideas?

If you're really doing something like this, you're likely to hurt yourself with all sorts of potential side-effects.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform