»  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
    

Stata

Shop

Support

Company


The Stata Blog: Not Elsewhere Classified Find us on Facebook Follow us on Twitter LinkedIn YouTube Instagram
© Copyright 1996–2022 StataCorp LLC   •   Terms of use   •   Privacy   •   Contact us