Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
PROBLEM: SET EXACT changes seeking result ?
Message
De
08/09/2003 09:58:12
 
 
À
08/09/2003 09:45:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00827017
Message ID:
00827068
Vues:
16
>Thanks Gregory.
>
>
>Fabio

I'll give you another trick as a result of the SELECT LEFT(...)
create cursor ppp( ppp M )
insert into PPP values('123')

select left(ppp,255) from ppp && we now have a char(255) field !!, 1 more than the documentation

&& this one gets better

select left(ppp,256) from ppp && we have a char(0) field

&& and better
select left(ppp,257) from ppp && a char(1) field

select left(ppp,2*256) from ppp && we have a char(0) field


in fact, select left(.., n) returns a char field of length mod(n, 255)
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform