Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
If you hardcode user names, you might be a crappy coder
Message
De
06/06/2021 11:49:17
 
 
À
05/06/2021 17:30:42
Walter Meester
HoogkarspelPays-Bas
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01680936
Message ID:
01680997
Vues:
56
>mdot is not the magical silver bullet to avoid conflicts between field and 'variables'
>
>Consider the following example
>
CREATE CURSOR Test (This i)
>INSERT INTO test VALUES (1)
>
>m.xo = CREATEOBJECT("X")
>m.xo.Foo()
>
>DEFINE CLASS x as Custom 
>	Value = 2
>
>	FUNCTION Foo
>		SELECT Test
>		m.oObject = THIS
>		WAIT WINDOW m.oObject.Value
>	ENDFUNC
>ENDDEFINE
>
> ...
>Walter,

Hrm... interesting... After I change the line
		m.oObject = THIS
to
		m.oObject = m.THIS
I'm now getting a C0000005 error. 🤔
(this is under VFP6 SP5)

In VFP 9 the crash doesn't occur.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform