Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
COMATTRIB_READONLY doesn't work?
Message
From
25/03/2004 14:28:27
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
COMATTRIB_READONLY doesn't work?
Miscellaneous
Thread ID:
00889736
Message ID:
00889736
Views:
60
Hi!

Just defined my first COM-server with read-only property like:
#include foxpro.h

DEFINE CLASS myclass AS SESSION olepublic
   * Define property
   MyProperty = "Test"
   * Only set the nFlags attribute for MyProperty
   myproperty_comattrib = COMATTRIB_READONLY
ENDDEFINE
I create a server object with CREATEOBJECT() :
oTest = CREATEOBJECT("myapp.myclass")
I still can modify MyProperty value on client. What's wrong?

Of course I can protect the property using COMRETURNERROR in assign method but why I need to do so? Is it a bug? (I use VFP8SP1 on WinXP SP1)
/A new technology turns into completely outdated stuff before you have a time to read "Getting Started..." section.
/If there are some "system programmers" then others are unsystematic.
Next
Reply
Map
View

Click here to load this message in the networking platform