Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Access method *suddenly* doesn't fire
Message
From
01/11/1999 16:57:30
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00284334
Message ID:
00285093
Views:
17
Hi, Cristof-
Thanks for your attention to this.

>Have you verified that this access method is not used somewhere higher in the calling hierarchy,

Yes, I have. The method has not been overwritten within the hierarchy. The correct object is being invoked.

I set a breakpoint on the line that evaluates the property in the EMPTY() call. When I pull down the list of populated methods, I do see the assign() method, and it has the code I am expecting.

> or maybe a different access method that has a different name?

I don't know what you mean by this.

> Are you accessing the property within an WITH...ENDWITH construct?

No. The code I posted (repeated below) is the entire method. Which happens to be called open(). Note that the property SourceName mentioned below also has an access method that is (was) not firing.
IF EMPTY( this.Alias )
	LOCAL lcSN
	lcSN = this.SourceName
	IF EMPTY( lcSN )
		RETURN .NULL.
	ENDIF
	lcSN = SUBSTR( lcSN, RAT( '\', lcSN ) + 1 )
	this.Alias = lcSN
ENDIF
RETURN THIS.alias
> If yes, try it with the full object reference.

> Does THIS really point to the object? In some cases THIS used to point to THISFORM for any control in the form.

"this" is a custom object. The method open is within the object, and this very definately points to the object. Not the form or other control.

> Can you call the access-method from within your object?

Yes, and it executes correctly. I added a direct call to it as a test before the EMPTY line and it worked.

> Have you changed the visiblity of one of the properties, or the object, ie. is it anything else than Public?

I checked that. The property and the access methods are public. I tried setting them to hidden and then back again with no effect.

> Is this object part of a CONTROL object?
It is in a container baseclass object that is another container on a pageframe.

Is this a COM-object?

No.

>Do you have a THIS_ACCESS method and is this method really returning the proper reference?

No. I wouldn't even have thought of it.

> Can you use a timer to determine at which point the Access method doesn't fire?

Well, I used the debugger, if that helps. But at this point, I realized in trying to debug it that my structure was bad. So, now I do not pass so many references to the form that has the array of objects, and it is working better, but my testing has been limited.

I'm trying to duplicate it with a small runnable sample in odd moments. If I can, then I will absolutely let you know. And, thank you again!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform