Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Escapeing from an add record function
Message
De
05/12/1998 14:25:49
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00164482
Message ID:
00164485
Vues:
26
>Hello all!
>
>I have used the following valid function in VFP5 many times to cancel an "add" on a form in VFP5, but it doesn't seem to work in VFP6!
>The 'Return" function in the message box works fine, but the 'cancel'
>code acts justs like the Return...
>The code doesn't seem to be working right... can anyone tell me why its not canceling the add or maybe suggest another way to accomplish this?
>
>TIA, DAN
>
>***************************************
>*-- VALID() of EMP_No field
>
>SELECT employee
>Set Order to emp_no
>Seek this.Value
>
>IF FOUND()
>*-- Update these fields
> With thisform
> .txtEmp_name.value=employee.emp_name
> Endwith
>ELSE
>nanswer=MESSAGEBOX("EMPLOYEE # NOT FOUND.",21,"ENTRY ERROR")
> IF nanswer=4
> return 0
> else
> keyboard '{esc} {alt c}' &&&&& MY problem seems to be here!
> endif
>ENDIF
Dan,
I'll ask a stupid question. Is button designated as cancel = .t. ?
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform