Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Propriedade Somente leitura em COM
Message
De
20/06/2003 15:31:49
Erick Miranda
Formata Data Business - Grupo Linx
Contagem, Brésil
 
 
À
18/06/2003 14:32:00
Fernando Oliveira
JMS Assessoria e Consultoria
Belo Horizonte, Brésil
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00801351
Message ID:
00802397
Vues:
47
This message has been marked as the solution to the initial question of the thread.
Olá Fernando!

Provavelmente há algum problema com o VFP ou tem algum segredo para utilizar aquela Array de propriedades. Para conseguir o efeito que você quer é só criar um método Assign sem atribuir o novo valor, assim:
DEFINE CLASS myclass AS CUSTOM olepublic
   * Define property
   MyProperty = 5.2
   
   HIDDEN Procedure MyProperty_Assign
      LPARAMETERS vNewVal
      MESSAGEBOX("Propriedade Somente Leitura")  && Msg opcional
   EndProc

ENDDEFINE
Espero ter ajudado.
Até mais.
Erick
Força Sempre!
Strength Always!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform