Navigation:  Reference > Functions >

LastObjectName()

Print this Topic Previous pageReturn to chapter overviewNext page

 

LAST_OBJ()

 

PURPOSE

This function returns the name of the last object accessed by the user.

 

NO OTHER PARTS

 

RETURN TYPE - A

If the receiving field is too short, the remaining characters will be truncated.

 

COMMENTS

Use this function to check what the user wants to do.  This is very helpful when you're in a .VALID or .POST event from an entry object.  For example, if the user clicks on a cancel button you may want to ignore the .VALID and just return .TRUE.  By knowing the name of the object you will be able to determine this.  If the user accesses another object the .VALID and .POST events will occur before a .PRE or .CLICK event of the new object.  This means the only way you can check where the user is going is through this function.  You can't set a flag in the new event and check for it in the exit events of the current object.

 

SEE ALSO LAST_OBJ_CLICK()

 

 

NOTE:  The name of the object is returned exactly the same way you entered it in the screen form editor.

 


Page url: http://www.cassoftware.com/tas/manual/lastobjectname().htm