Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Use a Predefined List for At command
Message
 
 
À
26/04/2007 16:02:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01220224
Message ID:
01220255
Vues:
32
This message has been marked as the solution to the initial question of the thread.
>>>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>
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform