Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Use a Predefined List for At command
Message
From
26/04/2007 16:11:04
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01220224
Message ID:
01220257
Views:
35
>>>>Steven,
>>>>
>>>>Similar to Edward but with the possibility of adding any large number of words:
>>>>
>>>>
>>>>create cursor c_words (Word C(240))
>>>>index on Word Tag Word && Might be an overkill?
>>>>
>>>>insert into c_words (Word) values ('TOOL')
>>>>insert into c_words (Word) values ('MO-ISSUE')
>>>>
>>>>INSERT INTO psCursor(itemid, rellev, partno, descptn) ;
>>>>Select 'x','1',cinbr,itdsc From getPSQuery Where itdsc Not in (select Word from C_Words)
>>>>
>>>
>>>These two solutions would not work. We're looking for a partial match, e.g. a small word inside the big description.
>>
>>I would prefer to get some response firstly, but anyway
>>
>>Select getPSQuery
>>Scan
>>  select badwordcursor
>>  locate for AT(badword,getPSQuery.itdsc)>0
>>  if found()
>>    loop
>>  endif
>>  INSERT INTO psCursor(itemid, rellev, partno, descptn) ;
>>    values('x','1',getPSQuery.cinbr,getPSQuery.itdsc)
>>Endscan
>>
>
>Note, that you named it BadWordCursor and I just used milder Unwanted <g>

Bad manners. I used to post on anonymous boards, they are so rude you wouldn't believe.
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform