Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Array passing in SQL UDF
Message
De
08/01/2000 15:40:15
 
 
À
08/01/2000 14:47:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00314970
Message ID:
00314978
Vues:
43
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform