Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do you index on an extension of the file name?
Message
De
14/04/1998 12:57:02
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
14/04/1998 12:52:25
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00091812
Message ID:
00091832
Vues:
24
>>>>I want to index on the last three letters of a file name
>>>>and get a list indexed by file extension.
>>>
>>>Firstly, you shuld collect file names/extensions into cursor (using ADIR()). Then you can index your cursor and use it for list.
>>---
>>Hi Ed and thanks...
>>I have a table with files name in it.
>>I want to index on the extensions.
>>I am looking for the index code.. example
>>index on surstr(fieldname,right(filedname,3)) to myindex - or something
>>like that...
>Try :
>index on upper(substr(fieldname,rat(".",filedname)+1))) to myindex
>Beware this one assumes all have extensions.
>Cetin
Oops. Correction :
index on upper(;
      iif(occur(".",fieldname),;
          substr(trim(fieldname), ;
          rat(".",fieldname)+1), ;
          ""))) to myindex
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform