Hi, just a small note: if you use <pre> html element, you don't have to replace your space with
Gauthier ----- Original Message ----- From: "Jon Grieve" <[EMAIL PROTECTED]> To: "Multiple recipients of list witango-talk" <[EMAIL PROTECTED]> Sent: Tuesday, November 05, 2002 3:56 PM Subject: RE: Witango-Talk: String Length > > 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=" '"> > > 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 > > __________________________________________________ > Modem offert:150,92 euros remboursis sur le Pack eXtense de Wanadoo ! > Haut dibit ` partir de 30 euros/mois : http://www.ifrance.com/_reloc/w __________________________________________________ Modem offert : 150,92 euros remboursis sur le Pack eXtense de Wanadoo ! Haut dibit ` partir de 30 euros/mois : http://www.ifrance.com/_reloc/w ________________________________________________________________________ TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED] with unsubscribe witango-talk in the message body
