Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Subjects and Observers
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Titre:
Subjects and Observers
Divers
Thread ID:
00613613
Message ID:
00613613
Vues:
43
I just added a subject/observer into my app and the code shown in the docs doesn't work. This is the code suggested by the manual:
LPARAMETERS toObject
LOCAL loState, lcState, lcType

loState = toObject.GetState()
lcState = loState.Get(1)
lcType = loState.Get(2)

IF lcType = "PROJECTS"

   DO CASE
      CASE lcState = 'SAVE'

           This.Parent.ClientsObj.Requery()

      OTHERWISE 
  
           RETURN .F. 

   ENDCASE
ENDIF
The problem with it is the line: lcType = loState.Get(2) - it returns a logical .F.

I changed it to: loState.cSubjectType which seems to work.
-Paul

RCS Solutions, Inc.
Blog
Twitter
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform