Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Propriedade Somente leitura em COM
Message
From
20/06/2003 15:31:49
Erick Miranda
Formata Data Business - Grupo Linx
Contagem, Brazil
 
 
To
18/06/2003 14:32:00
Fernando Oliveira
JMS Assessoria e Consultoria
Belo Horizonte, Brazil
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00801351
Message ID:
00802397
Views:
45
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!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform