Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Access & Assign ok with OLEControl?
Message
 
 
À
22/10/2001 14:49:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00571710
Message ID:
00572042
Vues:
24
>Larry,
>
>I tried removing the Access Method and leaving only the assign. At first, it appeared to work. I tweaked the control, saved it and brought it back up again - the default of FALSE was there. I placed the control on a form and looked at the value in the property sheet, it read FALSE - so far so good. I tried to change it to .T. but... DOH! No such luck - the property will NOT change.
>
>By the way - I've been doing this kind of thing with other controls for years and have never had this problem. It seems to happen only with objects based on the OLECONTROL. Here's the rules, based solely on anecdotal evidence.
>
>No Access, No Assign - No problem
>
>No Access, Just Assign - default value of False stays false. Unable to change the value in an instance of the object using the property sheet.
>
>Both Access and Assign - default value changes to TRUE. Unable to change the value in an instance of the object using the property sheet, or during the design of the class.
>
>So the question remains: Is it safe to use access and assign methods when working with controls based on OLECONTROL?
>
>Thanks again for your time and attention.
>

Erik,
I haven't had any problems with them but I have only used them in limited situations.

I use access methods for THIS_ACCESS. I use it to return the Object property of THIS when dealing with olecontrols. I have had no problems using ASSIGN methods at all. I add my additional code and make sure the propety is actually set on exit of the method and I have run in to no problems.

As I said, I have not used the two combined. I just haven't had a need to do that.

One more thing to try is deleting the property entirely. Save and close the class. Reopen it and attempt to add the new property again with only the Assign method. It's possible that the Access method does something that causes the Write-Only of the property.

Good luck.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform