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 tostart 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:
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 tostart 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:
Email notification to one of multiple vendors ? (1997)
WC1.6 to WC2 date formatting (1997)
Grep and <> (2005)
SUBMIT buttons not working.... (2000)
Re1000001: Setting up shop (1997)
What am I doing wrong? (2000)
Deleting Orders (1998)
Signal Raised Error (Part III) (1997)
[WebDNA] =?UTF-8?B?UmU6IFtXZWJETkFdIFJlOiBbV2ViRE5BXSBSZTogW1dlYkROQV0gUmU6IFtXZWJETkFdIA==?= (2011)
WebDelivery downloads alias, not original ? (1997)
Add to a filename in multifile upload (2002)
OT: U.S. Holidays Database (2005)
Time comparison question (1998)
[math] show=F exists? (1997)
.tmp files (2000)
OPEN MARKET PATENTS SOUND ECOMMERCE ALARM (1998)
HTML mapped to WebCat (2001)
Setting up WebCatalog with Retail Pro data (1996)
Speed/performance issues using .hdr (1997)
Emailer Question (1998)