Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Subjects And Observers
Message
 
To
24/10/2001 16:34:02
Robert Jewett
Q Technology Consulting
Tyler, Texas, United States
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00572895
Message ID:
00576578
Views:
27
Robert,

>When attempting to setup my own Subject/Observer combination, I received a type mismatch error from the following code, where lcType contains .F. instead of a character value. In looking at the example code in the Projects form, it appears that lcType is not even referenced. Was this a change in functionality, or might there be something I overlooked or failed to set which is causing the value to be returned incorrectly?>

You don't necessarily need to check the second parameter (in this case lcType) stored in the parameter object, unless your observer class is observing more than one subject. In any event, if you need to check it, make sure you have set the cType property of the subject...this is where the second parameter value is taken from.

Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Reply
Map
View

Click here to load this message in the networking platform