Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Truncated Values
Message
 
 
To
19/09/2007 21:14:48
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01255529
Message ID:
01255656
Views:
17
This message has been marked as a message which has helped to the initial question of the thread.
No, you have to pad whole expression. You cannot avoid trailing spaces because VFP8 and ealier do not support varchar fileds.
PADR(TRANSFORM(Patient.PCare_Phy, '@T') + '^' + TRANSFORM(RefProv.LAST, '@T') + '^' + TRANSFORM(RefProv.FIRST, '@T'), 50)
>This is what I used when there was one field:
>
>
>PADR(TRANSFORM(InsCarr.CarName, '@T'), 30, ' ')
>
>
>But now I'm getting truncated values in the individual fields in this SQL:
>
>
>TRANSFORM(Patient.PCare_Phy, '@T') + '^' + TRANSFORM(RefProv.LAST, '@T') + '^' + TRANSFORM(RefProv.FIRST, '@T')
>
>
>Do I have to pad each one? I'm sure I do, but what I really need is the trimmed values in the resulting field. Like "000001^Johnson^Donald" not "000001^Johnson ^Donald " if that made sense (I typed 5 spaces before the "^" but the UT parser ignored 4 of them).
>
>
>>Pad whole expression not part of it
>>PADR(TRANSFORM(InsCarr.CarName, "@T") + '|', 30) AS InsuranceCarrierName,
>>
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform