Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TagIsUnique() ????
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00099305
Message ID:
00099434
Views:
18
Hi Larry,
What I'm betting you are doing is creating a new tag on a file but want to make sure it does not already exist. TAGS are unique to a table so you could not have two with the same name.

To determine if a tag exists use the TAGNO() function. This is poorly documeented but works like this

Select mytable
If Tagno("LASTNAME") = 0
Index on lastname Tag LastName
Endif


Hope that helps.
Rod
Rod Paddock
Editor in Chief CoDe Magazine
President Dash Point Software, Inc.
VP Red Matrix Technologies,Inc.
Previous
Reply
Map
View

Click here to load this message in the networking platform