Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL return empty record
Message
De
09/02/2004 11:54:17
Mike Yearwood
Toronto, Ontario, Canada
 
 
À
09/02/2004 08:35:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00875407
Message ID:
00875500
Vues:
20
Hi John

The VFP help cautions against using UDFs in SQL. Please explain what you are trying to do, so we can suggest alternatives.

>Hi,
>I have a SQL statement that call my UDF. In the UDF, I have code to LOCATE the result as following.
>
>
>SELECT * FROM mytable WHERE myUDF() INTO CURSOR myresult
>
>FUNCTION myUDF()
>    *-- Some codes...
>
>    IF myCondition
>      lnWrk = SELECT(0)
>      SELECT myresult
>      LOCATE FOR condition1
>      IF FOUND()
>        *-- Som something
>      ENDIF
>
>      SELECT (lnWrk)
>    ENDIF
>
>    RETURN .T.
>ENDFUNC
>
>
>
>VFP returns empty record in result cursor for those records which match mtCondition.
>
>Any ideas?
>
>Thank you
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform