Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting field name based on tag name
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01351504
Message ID:
01351541
Vues:
25
>The second parameter is the CDX file name, not the alias of the table
>
>try
>
>
>use myTable alias myAliasName in 0
>? Sys(14, TagNo('myKeyName', Forceext(Dbf('myAliasName'), 'CDX'), 'myAliasName'))
>
Thanks again. KEY function seems to work, so I used it.

Anyway, now two new questions.

1. Do you see a problem with this statement
SELECT TRANSFORM(&lcExprC) as ChildField, ;
     lcParent as Parent_T, lcChild as Child_T, ;
     lcExprP as Parent_E, lcExprC as Child_E ;
     FROM (lcParent) ParentP ;
     RIGHT JOIN (lcChild) Child ON ;
     ParentP.&lcExprP = Child.&lcExprC ;
     WHERE (ParentP.&lcExprP) IS NULL INTO CURSOR curOr nofilter
Looks like it selecting a lot of records, while I would expect to have just few orphans.

Also I'm doing these selects in a loop. Is there a way to gracefully interrupt it?

Thanks again.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform