> Gregory j'ai fait l'essai et la longueur du champ nom avec ton exemple est de
> 52
> ce qui m'intrigue c'est le comportement opposé des deux interrogations sur la
> table proprio ou l'inversion des item autour de # donnent un résultat
> différent
> BROWSE FIELDS no_voile,nom,prenom,libel FOR ALLTRIM(libel)#ALLTRIM(nom)+'
> '+ALLTRIM(prenom) norm (1)
> BROWSE FIELDS no_voile,nom,prenom,libel FOR ALLTRIM(nom)+'
> '+ALLTRIM(prenom)#ALLTRIM(libel) norm (2)
>
> "Gregory" <NoOne@NoWhere.com> a écrit dans le message de news:
> jkvdt9$3hr$1@news.niouzes.net...
>
> En plus de Jean
>
>> SELECT no_voile,libel,ALLTRIM(nom)+' '+ALLTRIM(prenom) as nom FROM proprio
>
> La longueur du champ nom sera la longueur de la premiere ligne retournee
>
> nom prenom
> Adam Jean
> Blanchard (Alain a disparu ici, la longueur du champ = 9)
>
> Mieux vaut
>
>> SELECT no_voile,libel,padr(ALLTRIM(nom)+' '+ALLTRIM(prenom), 60 ) as nom
>> FROM proprio
>
> nom prenom
> Adam Jean
> Blanchard Alain ( on retrouve Alain puisque la longueur du champ est
> 60)
>
> Ou bien
>
> SELECT no_voile,;
> libel, ;
> cast( ALLTRIM(nom)+' '+ALLTRIM(prenom) as M) as nom ;
> FROM proprio
> ______
> Gregory
> ______
> "Alain Blanchard" <blanchardalain@nospam.free.fr> wrote in message
> news:jkvc3o$1r0$1@news.niouzes.net...
> Soit une table comportant un champ nom c 25, prenom c 20, libel c 35
> j'ai remplacé le champ libel par allt(nom+' '+allt(prenom)
> je browse ma table de la manière suivante
> BROWSE FIELDS no_voile,nom,prenom,libel FOR ALLTRIM(libel)#ALLTRIM(nom)+'
> '+ALLTRIM(prenom) norm (1)
> BROWSE FIELDS no_voile,nom,prenom,libel FOR ALLTRIM(nom)+'
> '+ALLTRIM(prenom)#ALLTRIM(libel) norm (2)
> dans le cas 1 tous les enregistrements apparaissent
> dans le cas 2 aucun
>
> pour obtenir un fichier vide il faut que j'écrive
> BROWSE FIELDS no_voile,nom,prenom,libel FOR
> ALLTRIM(libel)#ALLTRIM(ALLTRIM(nom)
> +' '+ALLTRIM(prenom)) norm
>
> si je fais un
> SELECT no_voile,libel,ALLTRIM(nom)+' '+ALLTRIM(prenom) as nom FROM proprio;
> WHERE ALLTRIM(libel)#ALLTRIM(nom)+' '+ALLTRIM(prenom) INTO CURSOR tt
>
> pas d'enregistrement. Y a-t-il une explication a cette différence de
> comportement suivant la position des opérandes?
>
> Alain de l'Ain
d'absorber...