Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SUBSTR of a Memo field returns a Memo field?!
Message
 
À
06/07/2005 09:11:32
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows 2000 SP4
Database:
Visual FoxPro
Divers
Thread ID:
01029401
Message ID:
01029405
Vues:
10
Hi Jay. I believe that using TRANSFORM() would solve this. -Kelly
CLEAR

CREATE CURSOR junk ( junk m )
INSERT INTO junk VALUES ( REPLICATE( "X", 5000 ) )

* This way gets a memo column
SELECT SUBSTR( junk, 1, 250 ) AS junk FROM junk
LIST STRUCTURE 

* This way gets a character column
SELECT TRANSFORM( SUBSTR( junk, 1, 250 ) ) AS junk FROM junk
LIST STRUCTURE 
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform