Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Truncated Values
Message
De
19/09/2007 12:43:57
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Truncated Values
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01255529
Message ID:
01255529
Vues:
53
I'm getting truncated values in the InsuranceCarrierName fields. I know why this is happening, the old whatever the first record's length is, then that's all you get for the rest. I added the PADR to get it all, but I really need the spaces trimmed between the field's value and the '|" character. How do I get around this?
SELECT ;
	TRANSFORM(InsCarr.InsCarr, "@T") + '|' AS InsuranceCarrierID, ;
	PADR(TRANSFORM(InsCarr.CarName, "@T"), 30, ' ') + '|' AS InsuranceCarrierName, ;
	IIF(Covr.CvPs == 'P', 'Primary', IIF(Covr.CvPs == 'S', 'Secondary', IIF(Covr.CvPs == 'T', ;
		'Tertiary',''))) AS InsuranceCoverage ;
	FROM Covr ;
	JOIN InsCarr ON InsCarr.InsCarr == Covr.CvCarr ;
	WHERE ;
		Covr.Pat_No = m.PtPn ;
		AND BETWEEN(DATE(), Covr.Eff_Date, EVL(Covr.Exp_Date, DATE(9999,12,31))) ;
	INTO CURSOR (ADT_IN1)
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform