Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
If you hardcode user names, you might be a crappy coder
Message
From
06/06/2021 11:49:17
 
 
To
05/06/2021 17:30:42
Walter Meester
HoogkarspelNetherlands
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01680936
Message ID:
01680997
Views:
55
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform