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 bewritten 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, boththe fields are combined and I am losing the rest of the text. There will beonly oneincidence of [image] in the text string.RECID NEWSBODY94267653718298

here is my actual code:[text show=f]appended=yes[/text][showif [INBody]^[raw][image][/raw]][append db=tempnews.db]RECID=[PVRecordid]&NEWSBODY=[middlestartafter=&endbefore=[raw][image][/raw]][text]INBody[/text][/middle][middlestartafter=&endbefore=[raw][image][/raw]][text]INBody[/text][/middle]

[middlestartafter=[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 acheivewith your help,Can you tell me what is wrong in my code or what other approach should Itake?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:
> 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 bewritten 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, boththe fields are combined and I am losing the rest of the text. There will beonly oneincidence of [image] in the text string.RECID NEWSBODY94267653718298
here is my actual code:[text show=f]appended=yes[/text][showif [INBody]^[raw][image][/raw]][append db=tempnews.db]RECID=[PVRecordid]&NEWSBODY=[middlestartafter=&endbefore=[raw][image][/raw]][text]INBody[/text][/middle][middlestartafter=&endbefore=[raw][image][/raw]][text]INBody[/text][/middle]
[middlestartafter=[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 acheivewith your help,Can you tell me what is wrong in my code or what other approach should Itake?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:
pc (1997)
WebCat2: Items xx to xx shown, etc. (1997)
[] Boxes in Safari (2004)
Error Lob.db records error message not name (1997)
WebCat2: Items xx to xx shown, etc. (1997)
determining plug-ins? (1998)
unable to launch acgi in WebCat (1997)
Can't Search field (1998)
[WebDNA] Email time bug? YES, it's a bug! (2011)
multiple search commands (1997)
[Fwd: Rotating Banners ... (was LinkExchange)] (1997)
Bug Report, maybe (1997)
Mac 2.1b2 speed (1997)
OFF TOPIC - sendmail problem (2003)
Variables (1999)
More! on [ShowCart] and GET vs. POST (1997)
Help! WebCat2 bug (1997)
[OT] Mac OSX hardware test software (2004)
numfound=0 for a search after going into the SSL (2003)
sendmail tag when with in comment tags. (2000)