Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem regarding INDEX
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00009699
Message ID:
00010621
Views:
38
>>
>>>I've got a problem with the structural index; I will explain it by an =
>example so it will be easier to understand.
>>>I create an index in the ascending order then I change in my programs =
>this order (from ascending to descending)
>>>but after this I can't know which kind of order this index had before =
>my change!!!
>>>So, my question is: there is a way to save or to know the order of my =
>index before change it?
>>
>>One idea might be to use descriptive tags to tell you what the index is.=
> Like dvar1, avar2, etc., where d=3Ddesc, a=3Dascending. Then use ORDER()=
> to read the tags and have your program determine what to do next...
>>
>>
>In VFP 5.0 Have you tried the DESCENDING function
>
>Returns a logical value that indicates whether an index tag was
>created with the DESCENDING keyword or whether the DESCENDING keyword
>was included in USE, SET INDEX, or SET ORDER.
>
>Syntax
>
>DESCENDING([CDXFileName,] nIndexNumber [, nWorkArea | cTableAlias])
>
>Returns
>
>Logical
>
>
>Bob

Thanks for the tip -- that's actually in 3.0, too.
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform