Home  /  Resources & support  /  Users Group meetings  /  1999 UK Stata Users Group meeting  /  Maintaining backwards compatibility

Maintaining backwards compatibility

  • _caller() function aids in maintaining backwards compatibility
            program define mycmd
                version 6.0
            
                if _caller() < 6 {
                    mycmd5 `0'
    	        exit
                }
                ... continue with Stata 6 version of command
            end