Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error-ThisFormSet can be only be use within a method
Message
De
04/03/2003 06:49:46
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
04/03/2003 06:39:48
Agnes Cheng
DynamicTech Consultants Ltd.
Hong Kong, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00760799
Message ID:
00760801
Vues:
12
>Step1)User inputs the data in the grid(table is invdetail)
>step2)press save 'button',press 'print' button (there will call external prg to do some calculation
>step3)the report is printed correctly
>step4)user press "new" button again,
>There is an error prompt "ThisFormSet can be only used withthin a method"
>if i press "ignore", another error is prompt"Alias 'invdetail' is not found.
>
>That table 'invdetail' is put in the dataenvironment (buffermode is 5)
>Pls help, Everytime the user "new" the invoice, everthing the error is prompt.
>
>Thanks in advance

I suggest you correct the first error first - the second error is likely to be the result of the first error.

Pressumably, you used a reference to ThisFormset, outside of a method code (of the Formset), for instance, in one of your functions. I suggest you use the debugger, to find out where you used this reference.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform