Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Wizard form
Message
 
À
25/02/2006 07:38:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Versions des environnements
Visual FoxPro:
VFP 9
Database:
Visual FoxPro
Divers
Thread ID:
01098903
Message ID:
01099175
Vues:
18
>m.stroeid=thisform.text1.value
> seek (m.storeid).....2
> if found()&& mean faster

Cut out some of the lines. No need to store it in a variable, no need for if found()
if seek(alltrim(thisform.text1.value))
       && You found it
    else
      && You didn't find it
    endif
>Also put controlsources in your texboxes .....3? how

Right-mouse on the texboxe, bring up the property sheet, and poit the controlsource of the textbox to the table field.

But you seem to be putting all this code in the same place? Why not have separate code for separate click event buttons.

Click event for the add button
Select myTable 
     append blank
Click event for the delete button
select myTable
     delete 
     thisform.refresh()
etc....

This way have no need for the ACT_FLAG variable to determine what the user is doing.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform