Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with scan
Message
 
À
07/03/1997 17:33:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00023308
Message ID:
00023460
Vues:
27
>>>When I run my form, it gives me an error message saying THISFORM can
>only
>>be used in a method.
>>>Anyone know why??
>>
>>the function is not a part of the form, so you must specify the form name
>
>>instead of using thisform...
>
> or at least the active form (_screen.activeform)
>
>Arnon

Try this:

in your form:

=MyFunction(ThisForm)


in your function:

FUNCTION MyFunction
LParameters oFormRef

SCAN
oFormRef.PropertyX = "Who cares?"
...
ENDSCAN
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...


Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform