Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Indexing
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01610714
Message ID:
01610715
Vues:
61
Not that I recommend it, but you could do:
index on iif(left(myfield, 1) = '/', myfield + space(1), '?' + myfield) tag mywierdindex
So if myfield starts with a slash we add a space to the end of the string, if it is not we add a question mark (or any other character whose ASCII value is greater than the ASCII value of the slash) at the beginning (the space is added so both strings have the same length)

But I think you should look into other solutions.
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform