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

LPARAMETERS toObject

LOCAL loState, lcState, lcType

loState = toObject.GetState()

lcState = loState.Get(1)
lcType = loState.Get(2) &&lcType is False here, as if not getting proper value

IF lcType = "PROJECTS"
DO CASE
CASE lcState = 'SAVE'
This.Parent.ClientsObj.Requery()
OTHERWISE
RETURN .F.
ENDCASE
ENDIF
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform