Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Subjects and Observers
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
Subjects and Observers
Miscellaneous
Thread ID:
00613613
Message ID:
00613613
Views:
41
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
Next
Reply
Map
View

Click here to load this message in the networking platform