Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Nasty index, any better ideas?
Message
 
À
06/08/2003 18:34:29
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00817470
Message ID:
00817522
Vues:
26
>Ah, I see. If you want numbers first. How about adding an iif(). I don't see any problem with testing the first character with left(). Apply this to the first part of the expression.
>
>str(val(iif(between(upper(left(CatNumber),1), "A", "Z"), 999999);
> + CatNumber
>
>Well, this is getting about as messy as your original proposal, in the message that originated this thread.

Yeah, that's a continual problem :-) However, I'm going to quit worrying much about complexity at this point - if the vfp index code translates to Access and it works right, I'm gonna be happy. (LEFT is a valid Access function, as I found, and I think I saw a BETWEEN-like function too. I found most, in fact, except CHRTRAN.)

I need to play with your new code addition a little more, it looks pretty good in theory (something's off a little in my paren-matching, give me a few more minutes to get it working.)

Actually my original code may be okay too, in that respect, now that I've been web-browsing through Access glossaries, and lowered my goals a little. I think all the vfp functions I used will translate, as will yours.
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform