Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting field name based on tag name
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01351504
Message ID:
01351548
Views:
16
>>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.

I see one:
TRANSFORM(&lcExprC)
that is a variable length field and if the first has the shortest value you will end up with that length :-)

Could you post the full select?
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform