I'd use something like:

<@VAR local$Len 15>
<@VAR local$Spaces "                                      ">

<@LEFT "<@VAR local$MyString><@VAR local$Spaces>" <@VAR local$Len>>

Of course, browsers ignore repeating spaces, so you'd also need to:

<@REPLACE STR="<@VAR foo$bar>" FINDSTR=" " REPLACESTR="&nbsp;'">

Jon




-----Original Message-----
From: Web Dude [mailto:webdude@;rsdigitalmedia.com]
Sent: 05 November 2002 1:43
To: Multiple recipients of list witango-talk
Subject: Witango-Talk: String Length


Is there a way to force spaces at the end of a <@COLUMN ""> returned 
from a search? And if the number of charaters exceeds 28, to trim the 
string? In other words, IF I wanted the length of the return to 
always be 28 characters...

Example....
<@ROWS>
(<@COLUMN "Products.Name">)<br>
</@ROWS>

  (brackets are added to show the length of the string)
would return the following...


(Golf Clubs                  )
(Golf Tees                   )
(NEW Parker White Teeshirt fo)
(Kensington White Shirt      )
(Parker Pen                  )
(NEW White Womens Fleece Hand)

I know I can use <@substring> or the <@trim>s to truncate if the 
length is over 28 charaters, but how about if it is under 28 
characters?


Thanks!
-- 
________________________________________________________________________
TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
                with unsubscribe witango-talk in the message body
________________________________________________________________________
TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
                with unsubscribe witango-talk in the message body

Reply via email to