IF !EMPTY( this.control_source ) local lcAlias, lcField, lSource lcSource = ALLTRIM(this.control_source) lcAlias = Left( m.lcSource), AT('.', m.lcSource) - 1) lcField = Subst( m.lcSource), AT('.', m.lcSource) + 1) IF SELECT( m.lcAlias ) > 0 IF EVALUATE( m.lcSource) == OLDVAL( m.lcField, m.lcAlias ) RETURN .T. ENDIF ENDIF ENDIFV_WORK.EMPLOYEE
>> 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"
>
>