Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error 1734 when setting property
Message
From
06/01/2009 09:57:29
 
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01371076
Message ID:
01371371
Views:
14
>>>>>>>Hi,
>>>>>>>
>>>>>>>What can cause the above error when setting a property of an object?
>>>>>>>
>>>>>>>I have a class derived from 'Container' with a property named 'IsValid' with an access method that simply returns T.
>>>>>>>A second class is derived from this which overrides the IsValid_Access by returning 'This.IsValid'
>>>>>>>
>>>>>>>In the InteractiveChange of a textbox in the class I have:
>>>>>>>
>>>>>>
>>>>>>Check Hidden/protected attribute
>>>>>>
>>>>>>
>>>>>>? PEMSTATUS(THIS.Parent,"IsValid",2)
Returns F - everything is public :-{
>>>>
>>>>Rename the IsValid_Access to IsValid_Access_, then try again.
>>>
>>>Thank you ! That worked (once I'd put the sub-classed code into the renamed method)
>>>So are you going to tell me why it worked (i.e. what was wrong before) :-}
>>>
>>>Regards,
>>>Viv
>>>
>>
>>Hard to say something without having the code in my hands.
>>
>>Post IsValid_Access code ...
>Pretty minimal. Just:
IF !THIS.IsValid
>  ?? CHR(7)
>  THIS.Label2.VISIBLE = .T.
>ENDIF
>RETURN THIS.IsValid
>
>Regards,
>Viv

try to reactivate the method ... now
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform