>><CFSET BlankSpace = (15 - #Len(PreviousEncounterReferenceNumber)#)>

<cfloop index="#Len(PreviousEncounterReferenceNumber)#" from="1"
to="#BlankSpace#">
<CFSET #PreviousEncounterReferenceNumber# =
'#BlankSpaceVariable#' & '#CurrentVariable#'>
</CFLOOP>

Try this instead:
<CFSET PreviousEncounterReferenceNumber
    = RepeatString(" ", 15 - Len(PreviousEncounterReferenceNumber))  & CurrentVariable>
It should do the same thing, and avoid using #...# when not necessary.
Don't forget to enclose the output inside <PRE>...</PRE> tags if you want to list the results, or all consecutive spaces will be reduced to only one.
--
_______________________________________
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to