Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Access & Assign ok with OLEControl?
Message
De
22/10/2001 14:22:49
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00571710
Message ID:
00571786
Vues:
41
>>I'm trying to set the default value through the property sheet - that's the ideal method - one place to look.
>
>With Access and Assign methods, that isn't necessarily the case. Assign methods don't fire if the property is set via the Property Sheet. In order to have it fire, you need to add code to the Init to set the Value to itself.

That's true - but when I drop the control onto a form in development mode I don't want to have to go back and set displayonly from True to False - If it can be set through the property sheet when designing the class, THAT would be ideal. When the control executes, I definately want it to run through the methods.

>As for your error, I was able to duplicate it setting only the Access method. This may be a bug (not sure). Do you need the Access method for your purposes?

I'm only interested in the Assign method, but have been in the habit of including the matched set. Wasn't there an issue (bug) that arose if you didn't include both? It appears as if you specify both methods VFP (6 & 7) sets the property to TRUE and ignores any default value. I'm starting to think that VFP is trying to be helpful but screwing me up in the process.

Regards,

Erik
~Erik Folley
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform