Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Table Order
Message
De
13/01/2010 17:22:10
 
 
À
13/01/2010 12:14:59
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
01442768
Message ID:
01443839
Vues:
32
>
>Select * into table addition 
>index on fname tag fname
>
>SET ORDER TO tag fname
>
All this needs to be done BEFORE you start working with the greater table. You can do it in the Form Load or Form Init method (probably others as well)
>SCAN
>SEEK addition.fname   &&check for name
In your code yor are scanning all records in the Addition table looking for names in the Addition table. This makes no logical sense. You need to pay much closer attention to what tables you are processing and what values you are looking for. What you need to substitute is (in the click event of the button the user presses
SELECT addition
SEEK greater.name
>	IF FOUND()
>		THISFORM.UpdateResultsWindow(fname +'already exist')
>	ELSE
>		thisform.updateresultswindow(fname +"added')
>                           Thisform.continue&&(this form has the code to send the name to the greater table)
>	ENDIF
>ENDSCAN
>
>
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform