Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Subjects And Observers
Message
From
24/10/2001 16:34:02
Robert Jewett
Q Technology Consulting
Tyler, Texas, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
Subjects And Observers
Miscellaneous
Thread ID:
00572895
Message ID:
00572895
Views:
45
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
Map
View

Click here to load this message in the networking platform