Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Array passing in SQL UDF
Message
De
08/01/2000 14:47:29
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Array passing in SQL UDF
Divers
Thread ID:
00314970
Message ID:
00314970
Vues:
76
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

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?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform