Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
THISFORM can only be used within a method
Message
De
12/01/2007 11:55:09
 
 
À
12/01/2007 11:14:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01185055
Message ID:
01185098
Vues:
15
>I know - that old chestnut
>
>I've made some changes to a form and since, whenever I click on a particular combo, the first time, I get:
>
>"THISFORM can only be used within a method".
>
>I've tried to trace where in debug, even to putting some dummy code in the combo's .GotFocus(), but it follows the code then the message appears from nowhere. Now, I have no code outside the form's methods, referenced anywhere in the form, that includes "Thisform", nor is that the among any of the changes I made. The 2nd time I click on the combo it behaves properly.
>
>The only code I have in the combo is in the .InteractiveChange() and this isn't reached (in debug) before the error message.
>
>I was using some "thisform.cRouteNo" in a filter string , and in an SQL statement, which I vaguely remember VFP7 doesn't like, so first loaded a method var with this and substitued this in the strings, but made no difference (and indeed these snippets aren't reached first anyway.
>
>This has got me baffled. Any ideas
>
>'ppreciate it
>
>Terry

Terry,

Do you have any code/function in a skip for clause of a menu item popup that contains 'thisform' ?
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform