ATOUTFOX
COMMUNAUTÉ FRANCOPHONE DES PROFESSIONNELS FOXPRO
Visual FoxPro : le développement durable

Forum AtoutFox : Re: index on padl(proper(name), 240) tag Name candidate   

Sujet

rss Flux RSS des derniers messages

Vous devez vous identifier pour pouvoir poser une question ou répondre.

sam. 28 juillet 2018, 11h16
eddymaue
atoutfox.public.association

Re: index on padl(proper(name), 240) tag Name candidate


Ok c'est réglé

j,ai comparé les propriétés des 2 formulaires

le form du projet1 est 2- Private Data Session
projet2 était en 1- Default Data Session

là en mettant en 2-Private Data Session je ne vois plus apparaitre la boite de dialog Invalid Key Lenght

index on padl(proper(name), 240) tag Name candidate

fonctionne et donc c'est tout de meme incensé

bref j'aimerais bien la comprendre celle là

dans l'aide il n'est aucunement question de DatatSession

a+ eddy

Invalid key length (Error 112)
If you created an index key that exceeds the following limits, create a shorter index key.

The length of an index key for an index or compiled index (.idx) must be between 1 and 100 characters. The length for a compound index (.cdx) must between 1 and 240 characters.

For certain collating sequences, or when using double-byte character sets (DBCS) characters, each character in the eExpression parameter in the INDEX command uses two characters in the index key. In these cases, the length of eExpression is limited to 120 characters.

If you created an index key with length of 0, make sure the first record of the fields you base the index on contains some data.

When Visual FoxPro creates an index, it evaluates fields in the first record in the table.



une réponse pour eddymaue

Allo,
> salut a tous

> voilà j'ai le probleme suvant

> j,ai 2 fichiers identiques dans 2 projets supposéments identiques

> Projet1
> form.load()

> index on padl(proper(name), 240) tag Name candidate

> Projet2
> Form.load()

> index on padl(proper(name), 120) tag Name candidate

> Le projet2 est une copie du projet1 avec des modifications.

> je n'ai pas touché à méthode Load des 2 formulaires

> et si je dépasse 120 j'ai Invalid Key length

> j'ai fait un build, un cleanup et un refresh

> rien a faire

> bref je cherche et je cherche

> si quelqu'un a une idée

> a+ eddy

--
a+ Eddy
L'incompréhensible se réalise toujour avant le compréhensible parce que
tout simplement on ne l'a pas encore assimilé


Permalink : http://www.atoutfox.org/nntp.asp?ID=0000019148
20 088 messages dans le forum • Liste complète des messages

Publicité

Les pubs en cours :

www.atoutfox.org - Site de la Communauté Francophone des Professionnels FoxPro - v3.4.0 - © 2004-2024.
Cette page est générée par un composant COM+ développé en Visual FoxPro 9.0-SP2-HF3