Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Subjects And Observers
Message
 
À
24/10/2001 16:34:02
Robert Jewett
Q Technology Consulting
Tyler, Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00572895
Message ID:
00576578
Vues:
30
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform