General information
Category:
The Mere Mortals Framework
Title:
Subjects And Observers
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
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only