Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
_Assign Method Bug
Message
From
21/10/1998 16:37:21
 
 
To
21/10/1998 13:38:06
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00148984
Message ID:
00149103
Views:
35
Hey John,

It's a label object as a member of a container object (whose visible property is always .F.). The strange thing is that if there is code after the LPARMETER statement, then it works fine.

Example:

PROCEDURE visible_assign
LPARAMETERS tlVisible

[Code Segment]

?VARTYPE(tlVisible) *** returns L as expected
?tlVisible *** returns .T. or .F. as expected

This.Visible = tlVisible *** no problem

ENDPROC

This leads me to woder if there is some sort of wait within the _assign method.

Then again, I'm still using the March pre-release so that may be the problem - guess it's time to cough-up for VS ENT. Thought that if I held out through the new year, the SP release would include SQL Server 7.0.

>Hi Jeff ---
>
>I don't see this. What type of object are you trying this with?
>
>>
>>I have noticed that, in some cases, the parameter received by an _assign method is not what was passed - or that there is some sort of wait within the _assign method before the parameter receives the value.
>>
>>For example:
>>
>>This.Visible = .T. should pass .T. to the tlVisible parameter in the following _assign method, but it doesn't. The changing of the default "vNewVal" to "tlVisible" makes no difference.
>>
>>PROCEDURE visible_assign
>> LPARAMETERS tlVisible
>>
>> ?VARTYPE(tlVisible) *** returns N (a numeric)
>> ?tlVisible *** returns 0
>>
>> This.Visible = tlVisible *** returns an error (obvoiusly)
>>
>>ENDPROC
>>
>>Iv'e also experienced a similar problem with assigning object referrences.
>>
>>Has anyone else experienced this?
>>
>>TIA
- Jeff
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform