Re: Some pointers please

This WebDNA talk-list message is from

2008


It keeps the original formatting.
numero = 69739
interpreted = N
texte = Steve Craig wrote: > Hi > > I have a little problem with something and my brain isn't working so any > pointers or hints would be good. > > Basically I need to split a large text variable into 2 new variables, > the first 50 or so words into [var1] and then the rest into [var2] > > It can't be just a set number of chars it must be to the nearest > complete word, and the second var must carry on from that point etc. > > Hope this is clear, any help would be much appreciated. > > Cheers "50 or so"? Well, you can use [index] in listwords to designated when to start a new var... [text mult=T]var1=&var2=[/text] [listwords..] [if ([index]<50) | ([index]=50)] [then] set first var [/then] [else] set second var [/else] etc.. Donovan -- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE EUCA Design Center <- Web Development (specializing in eCommerce),-> <- Desktop Publishing, Print Consulting, Labels -> <-Glass Products, off-hand Classes/studio rental-> PH:>(608) 770-3822 TALK:>http://artglass-forum.com WEB:> http://www.euca.us & http://www.egg.bz =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Some pointers please ( Stuart Tremain 2008)
  2. Re: Some pointers please ( Stuart Tremain 2008)
  3. Re: Some pointers please ( Donovan Brooke 2008)
  4. Some pointers please ( Steve Craig 2008)
Steve Craig wrote: > Hi > > I have a little problem with something and my brain isn't working so any > pointers or hints would be good. > > Basically I need to split a large text variable into 2 new variables, > the first 50 or so words into [var1] and then the rest into [var2] > > It can't be just a set number of chars it must be to the nearest > complete word, and the second var must carry on from that point etc. > > Hope this is clear, any help would be much appreciated. > > Cheers "50 or so"? Well, you can use [index] in listwords to designated when to start a new var... [text mult=T]var1=&var2=[/text] [listwords..] [if ([index]<50) | ([index]=50)] [then] set first var [/then] [else] set second var [/else] etc.. Donovan -- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE EUCA Design Center <- Web Development (specializing in eCommerce),-> <- Desktop Publishing, Print Consulting, Labels -> <-Glass Products, off-hand Classes/studio rental-> PH:>(608) 770-3822 TALK:>http://artglass-forum.com WEB:> http://www.euca.us & http://www.egg.bz =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Donovan Brooke

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:

Suffix or Line? (1999) Frames and WebCat (1997) searching illegal HTML (2002) URGENT - CPU usage OSXS (2001) Multiple catalog databases and showcart (1997) Shipping charges depending on tax rate? (1997) [isfile] ? (1997) Webstar 1.3.1 PPC (1997) duplicate cart numbers (2002) Authenticate (1997) FW: ANother SHOWIF problem (1997) So many lookers, hey smith micro (2003) WebCatalog/Mac 2.1b2 - PIXO (1997) sorting and grouping (1998) Public beta 2 for WebCatalog 4.0 is now available. (2000) Search/sort in URL Was: GuestBook example (1997) Cart Question (1998) Multi-processor Mac info ... (1997) RE: WebCatalog NT beta 18 now available (1997) WebCatalog Hosting (1996)