Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Local functions
Message
De
12/05/2003 10:46:36
Justin Roper
The Cadle Company
Ohio, États-Unis
 
 
À
10/05/2003 08:36:51
Liam O'Hagan
O'Hagan Programming Ltd
Irlande
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00787037
Message ID:
00787328
Vues:
14
Hi Liam,
In the form.init I put in the following:
FUNCTION justcopydata
SELECT tableX
APPEND BLANK
REPLACE tableX.column1 WITH tableA.column1
REPLACE tableX.column2 WITH tableA.column5
REPLACE tableX.column3 WITH tableA.column6
....
REPLACE tableX.column14 WITH tableB.column5
ENDFUNC

Then when I go to exit out of this screen I get the following error:
"Methods and events cannot contain nested procedures or class definitions." -OK- I am just coping information from a few different tables to the report table (tableX).
Now I want to call this function several times in form.command1.click. Am I putting the local function in the wrong place because I tried putting it in form.command1.click before the rest of my other code and I was still getting that same error? If you need any more info let me know.
Thanks
Justin
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform