Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Primary() Incorrectly returning .F.
Message
From
19/10/1998 15:09:04
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Primary() Incorrectly returning .F.
Miscellaneous
Thread ID:
00148249
Message ID:
00148249
Views:
67
I have a procedure that loops through the tags on a file and determines which (if any) are the primary key. It's always worked without a problem (I believe it's even stolern from the Help). It has recently returned .F. regardless of what is declared in the dbf. When I set the tag to Regular, saved, then set back to Primary, it began working again.

Any insights?

jt

*-- simple code to show primary key
lcPrimeTag = ''
FOR lnCount = 1 TO 254
IF !EMPTY(TAG(lnCount)) && Checks for tags in the index
IF PRIMARY(lnCount)
lcPrimeTag = TAG(lnCount)
EXIT && Primary tag found
ENDIF
ELSE
EXIT && Exit the loop when no more tags are found
ENDIF
ENDFOR
? 'Primary Tag: '+lcPrimeTag
Reply
Map
View

Click here to load this message in the networking platform