replacing text with random word from table
replacing text with random word from table
replacing text with random word from table
replacing text with random word from table
replacing text with random word from table
replacing text with random word from table replacing text with random word from table replacing text with random word from table replacing text with random word from table replacing text with random word from table replacing text with random word from table replacing text with random word from table replacing text with random word from table
replacing text with random word from table replacing text with random word from table
replacing text with random word from table
Go Back  Xtreme Visual Basic Talk > > > replacing text with random word from table


Reply
 
Thread Tools Display Modes
  #1  
Old 01-09-2011, 12:19 AM
052e 052e is offline
Newcomer
 
Join Date: Jan 2011
Posts: 2
Question replacing text with random word from table


Hi guys I'm new to VB and am trying to create something that will change specific words within a DB entry to a random word from a table

my goal is to change swear words to a random word in a separate table (like darn, dang, waterstopper, ect)

so far i have an "Input" table with the text I need to change and a "SwearRep" table with a list of words I need to replace in col "WBad" and their replacements in "WGood"

so far I haven't found anything similar to what I'm trying to do on line any ideas would be great!
Reply With Quote
  #2  
Old 01-10-2011, 05:08 AM
052e 052e is offline
Newcomer
 
Join Date: Jan 2011
Posts: 2
Default

so far I have made this query to randomly generate a WGood.

tho I am still unsure as to how to search the text for words in WBad and then use this to replace them with the corresponding WGood that populates in this query

Code:
SELECT TOP 1 WBad, Rnd([ID]) AS Expr1, WGood AS Expr2
FROM WList
WHERE ((WList.WBad)=***)
ORDER BY Rnd([ID]) DESC;
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
replacing text with random word from table
replacing text with random word from table
replacing text with random word from table replacing text with random word from table
replacing text with random word from table
replacing text with random word from table
replacing text with random word from table replacing text with random word from table replacing text with random word from table replacing text with random word from table replacing text with random word from table replacing text with random word from table replacing text with random word from table
replacing text with random word from table
replacing text with random word from table
 
replacing text with random word from table
replacing text with random word from table
 
-->