Re: [WebDNA] GETCHARS ... words?
This WebDNA talk-list message is from 2009
It keeps the original formatting.
numero = 102264
interpreted = N
texte = HiI have used this for a while now and it works fine for me.[if [countchars][myMAINSTORY][/countchars]>1000] [then] [listwords delimiters= &words=[url][getchars start=1&end=1000] [myMAINSTORY][/getchars][/url]][text]word[math][index]+1[/math]=[word] [/text][text]word[index][/text] [/listwords]... [/then] [else] [myMAINSTORY] [/else][/if]The listwords line should be all in one if this email wraps. Hope this helps.Cheers========================================Steve Craig - Asylum Interactive LtdTel +44 1330 860550 Fax +44 1330 860880========================================http://www.asylumweb.comEmail: steve@asylumweb.comSkype: s.craig - iChat: steve.craig========================================On 26 Mar 2009, at 19:54, Ki Song wrote:> Is there a function within WebDNA that allows you to limit the number> of characters, but on get complete words?> For example, we would like to first 1000 characters from a field.> However, if character 1000 is in the middle of a word, it would only> return the last full word before the 1000th character.>> Does that make sense?> Is this possible?>> -----------> Ki Song> ---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list
.> To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us> old archives: http://dev.webdna.us/TalkListArchive/
Associated Messages, from the most recent to the oldest:
HiI have used this for a while now and it works fine for me.[if [countchars][myMAINSTORY][/countchars]>1000] [then] [listwords delimiters= &words=[url][getchars start=1&end=1000] [myMAINSTORY][/getchars][/url]][text]word[math][index]+1[/math]=[word] [/text][text]word[index][/text] [/listwords]... [/then] [else] [myMAINSTORY] [/else][/if]The listwords line should be all in one if this email wraps. Hope this helps.Cheers========================================Steve Craig - Asylum Interactive LtdTel +44 1330 860550 Fax +44 1330 860880========================================http://www.asylumweb.comEmail: steve@asylumweb.comSkype: s.craig - iChat: steve.craig========================================On 26 Mar 2009, at 19:54, Ki Song wrote:> Is there a function within WebDNA that allows you to limit the number> of characters, but on get complete words?> For example, we would like to first 1000 characters from a field.> However, if character 1000 is in the middle of a word, it would only> return the last full word before the 1000th character.>> Does that make sense?> Is this possible?>> -----------> Ki Song> ---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us> old archives: http://dev.webdna.us/TalkListArchive/
Steve Craig
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
Re:E-Mailer (WebCatb15acgiMac) (1997)
Question re: Format command (2000)
Database Advice (1996)
color and size options (1997)
re: date search problem (1999)
Setting up shop (1997)
Who is doing sign-ups-got it (1998)
[defined]ish (1997)
WebCat2.0b15-to many nested [xx] tags (1997)
webDNA programmer needed (2002)
Email notification to one of multiple vendors ? (1997)
[WebDNA] Hard-coded db write delay when running certain code? (2011)
Part Html part WebDNA (1997)
Faxing orders in place of email (1997)
How does 4DWebSTAR V's cache work? (2002)
[ShowCart]-- was ThankYou page problems (1997)
Kill the webcat process (2000)
if else problem (2003)
Trigger to restart Webcat Service (2001)
Re1000001: Setting up shop (1997)