Re: Replacing a Word

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 24413
interpreted = N
texte = > This is tough, since Webcat has no true string manipulation tools. Assuming there is no > more than one occurance of [image] in any given field, this should work: > > I assume your database is named database.db, the field it is to be written to is called > field, and your string is currently stored in a textvariable called > [text]variable[/text] >This is what I got in my db, I have two fields RECID and NEWSBODY, both the fields are combined and I am losing the rest of the text. There will be only one incidence of [image] in the text string.RECID NEWSBODY 94267653718298 here is my actual code: [text show=f]appended=yes[/text] [showif [INBody]^[raw][image][/raw]] [append db=tempnews.db]RECID=[PVRecordid] &NEWSBODY=[middle startafter=&endbefore=[raw][image][/raw]][text]INBody[/text][/middle] [middle startafter=&endbefore=[raw][image][/raw]][text]INBody[/text][/middle] [middle startafter=[raw][image][/raw]&endbefore=][text]INBody[/text][/middle] [/append] [text show=f]appended=yes[/text] [/showif] [showif [text]appended[/text]=no] [append db=tempnews.db]field=[text]INBody[/text][/append] [/showif]----0---- I had to change only one line, instead [text]variable[/text] I used [variable] i.e.,[INBody]Thanks for the help, I am getting closer to acheiving what I want to acheive with your help, Can you tell me what is wrong in my code or what other approach should I take?anup ------------------------------------------------------------- Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. To end your Mail problems go to .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 Associated Messages, from the most recent to the oldest:

    
  1. Re: Replacing a Word (Anup Setty 1999)
  2. Re: Replacing a Word (Brian Boegershausen 1999)
  3. Replacing a Word (Anup Setty 1999)
  4. Re: Replacing a Word (Anup Setty 1999)
  5. Re: Replacing a Word (Rob Marquardt 1999)
  6. Re: Replacing a Word (Anup Setty 1999)
  7. Re: Replacing a Word (Derrick Puckett 1999)
  8. Re: Replacing a Word (Derrick Puckett 1999)
  9. Re: Replacing a Word (Jesse Williams Proudman 1999)
  10. Re: Replacing a Word (Derrick Puckett 1999)
  11. Replacing a Word (Anup Setty 1999)
> This is tough, since Webcat has no true string manipulation tools. Assuming there is no > more than one occurance of [image] in any given field, this should work: > > I assume your database is named database.db, the field it is to be written to is called > field, and your string is currently stored in a textvariable called > [text]variable[/text] >This is what I got in my db, I have two fields RECID and NEWSBODY, both the fields are combined and I am losing the rest of the text. There will be only one incidence of [image] in the text string.RECID NEWSBODY 94267653718298 here is my actual code: [text show=f]appended=yes[/text] [showif [INBody]^[raw][image][/raw]] [append db=tempnews.db]RECID=[PVRecordid] &NEWSBODY=[middle startafter=&endbefore=[raw][image][/raw]][text]INBody[/text][/middle] [middle startafter=&endbefore=[raw][image][/raw]][text]INBody[/text][/middle] [middle startafter=[raw][image][/raw]&endbefore=][text]INBody[/text][/middle] [/append] [text show=f]appended=yes[/text] [/showif] [showif [text]appended[/text]=no] [append db=tempnews.db]field=[text]INBody[/text][/append] [/showif]----0---- I had to change only one line, instead [text]variable[/text] I used [variable] i.e.,[INBody]Thanks for the help, I am getting closer to acheiving what I want to acheive with your help, Can you tell me what is wrong in my code or what other approach should I take?anup ------------------------------------------------------------- Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. To end your Mail problems go to .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 Anup Setty

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:

Setting user and password (1999) [isfile] ? (1997) UPS charges (2000) emailer on Windows Beta 18 (1997) Why is this search finding the right thing?! (2002) Stock Quotes (2000) Search for starts with and ends with? (2003) RandSeed (2003) no global [username] or [password] displayed ... (1997) Include a big block of text (1997) I'm having trouble using [url][interpret][math] together in lookup (1997) Country & Ship-to address & other fields ? (1997) Using Plug-In while running 1.6.1 (1997) Tracking (2004) Newbie problem blah blah blah (1997) Zip Code Search (2000) LinkPoint (2003) Web Catalog vs. ICAT (1997) WebCatalog stalls (1998) Multiple fields on 1 input (1997)