Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Want to add a task before Save event
Message
De
24/09/1999 23:10:59
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
24/09/1999 16:05:34
Pierre Richard
Méthotech Canada Limitée
Kirkland, Québec, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00268756
Message ID:
00268867
Vues:
22
>I have a procedure in the stored procedures of my database that I want to execute just prior to saving the form's record.
>
>I had originaly in the MyForm.Save event:
>*bof
>=MyProcedure()
>dodefault()
>*eof
>
>but it complained about some parameters to be passed. My procedure doesn't need any parameters passed so it has to be the save event itself.
>
>BTW the procedure executes OK if placed in the LostFocus event of a txtcontrol but i would mucho prefer to have it before the save of the form's record.
>
>Can someone tell me how to code the Form.Save event correctly ?
>
>TIA
>
>Pierre Richard


Pierre,
Myprocedure() doesn't want any parameters but what about default save code ? Might it be your save code requesting the parameters ? ie: dragover needs some parameters like oSource, nButton, Xcoord, YCoord. You would code it like this :
lparameters oSource, nButton, Xcoord, YCoord
=myprocedure()
dodefault(oSource, nButton, Xcoord, YCoord)
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