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:02:36
 
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:
01220253
Views:
30
>>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
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform