Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding a record
Message
 
À
31/10/1997 23:39:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00057478
Message ID:
00057769
Vues:
35
> PROCEDURE cmdadd.Click
>
>
> thisform.txtname.visible=.t.
> thisform.combo1.visible=.f.
>
> thisform.cmdsave.visible = .t.
> thisform.cmdabort.visible = .t.
> *select rob
> scan for empty(name)
> blank
> dele
> endscan
> goto top
>
> set dele off
> loca for deleted()
> if found()
> m_add_mode = .f.
> blank
> recall
> else
>
> m_add_mode = .t.
>
> append blank
>
>
> endif
> set dele on
>
> thisform.refresh
> thisform.txtname.setfocus
> ENDPROC
Robert,

In the code above you never select a work area (because that line is commented out), how are you sure that the sacn and append commands are working in the work area that you want them to? You also call a form refresh which will execute the refresh of all of the controls in the form, is there any code in any of those control's refresh methods that might move the record pointer on you?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform