IF !EMPTY( this.control_source ) cAlias = SUBSTR( ALLTRIM(this.control_source), 1, AT('.',ALLTRIM(this.control_source)) - 1) * 1. Check to see if cAlias is blank IF EMPTY(cAlias) = MESSAGEBOX("cAlias is empty", 0, "test") ELSE * 2. A different approach to checking if workarea is open IF NOT USED( cAlias ) = MESSAGEBOX("Alias "+cAlias+" not open!", 0, "test") ELSE cControlSource = ALLTRIM( this.control_source ) IF EVALUATE( cControlSource ) == OLDVAL( cControlSource ) RETURN .T. ENDIF ENDIF ENDIF ENDIF>>>>Hi,
>>>> cControlSource = ALLTRIM( this.control_source ) >>>> IF EVALUATE( cControlSource ) == OLDVAL( cControlSource ) >>>> RETURN .T. >>>> ENDIF >>>>>>>>
>>>> >>>>IF !EMPTY( this.control_source ) >>>> cAlias = SUBSTR( ALLTRIM(this.control_source), 1, AT('.',ALLTRIM(this.control_source)) - 1) >>>> IF SELECT( cAlias ) > 0 >>>> cControlSource = ALLTRIM( this.control_source ) >>>> IF EVALUATE( cControlSource ) == OLDVAL( cControlSource ) >>>> RETURN .T. >>>> ENDIF >>>> ENDIF >>>>ENDIF >>>>>>>
>>>cControlSource = ALLTRIM( this.control_source ) >>>>>>to a bogus:
>>>cControlSource = "test.test_field"
>>>
>>>>>* object "foo" contains object "bar" which in turn contains object "baz". Object "baz" has property named "propname" >>foo.bar.baz.propname = "some value" >>= SubProc( foo.bar.baz ) >>* value of "propname" property would have changed. >> >>FUNCTION SubProc( yuck ) >> yuck.propname = "other value" >>ENDFUNC >>>