Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Truncated Values
Message
From
19/09/2007 12:43:57
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Truncated Values
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01255529
Message ID:
01255529
Views:
54
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)
Next
Reply
Map
View

Click here to load this message in the networking platform