That's funny...  Maybe I should update my documentation to SP1...


-----Original Message-----
From: Stefan Gonick [mailto:stefan@;DatabaseWebWorks.com]
Sent: 05 November 2002 3:08
To: Multiple recipients of list witango-talk
Subject: RE: Witango-Talk: String Length


You could more simply use the @pad command.

Stefan

At 02:56 PM 11/5/2002 +0000, you wrote:

>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

========================================================
Database WebWorks: Dynamic web sites through database integration
http://www.DatabaseWebWorks.com

________________________________________________________________________
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