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:
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)