Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using 2 Search Fields
Message
De
15/07/2003 07:02:31
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00810124
Message ID:
00810133
Vues:
13
Hi Neil

Just add the code for handling the second text field value to your exising code as shown below:

>
>LOCAL lcdesign
>
>DO CASE
>	CASE thisform.combo1.displayvalue='='
>           lcdesign="modacad.key3=thisform.text1.value"
>        CASE thisform.combo1.displayvalue='$'
>           lcdesign="modacad.key3$thisform.text1.value"              	
>ENDCASE


**************************************************************
*** Check the second field here
IF NOT EMPTY( ThisForm.text2.value )
  lcDesign = lcDesing + ' AND type = ' + ThisForm.Text2.Value
ENDIF
**************************************************************

>SELECT * ;
>FROM ("U:\Data\modacad.dbf") ;
>WHERE &lcdesign ;
>order BY mainkey ;
>INTO CURSOR crssearch
>
----
Regards
Andy Kramek
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform