Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Palabras con acentos
Message
De
16/10/2000 15:32:28
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
16/10/2000 12:27:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00429808
Message ID:
00429971
Vues:
14
>si tengo en un archivo palabras con acentos como puedo buscar desde un formulario X palabras sin necesidad de poner el acento a estas palabras?
>existe alguna forma?
>
>thank you

Pardon me for not answering in Spanish - my knowledge of it is rather read/only.
You can still use Seek() with accented characters, provided the tag you are using for seek was created with collating sequence other than machine - probably General would work in your case. The non-machine collating sequences maintain weights of characters and character pairs, to obtain proper language-specific sequence (i.e. a character like é does not come after z, but comes between e and f). It also means that if you have a seek('jose', 'yourtable','nametag'), it may find both José or Joseph (whichever exists in the table and comes first), i.e. the seek becomes not only accent-blind, but case-blind as well.

Therefore, when you need this functionality:

set collate to "general"
index on name tag name
set collate to "machine"

You need to revert to machine sequence for all other indexes - if you have any other type of key expression (except character), the tag will be, in the least, unreliable.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform