Hi all,
I've been working on a user-written ado file that with its current name works perfectly fine. But wanted to change the name of the ado file -and the main program accordingly- and when I do that (without closing stata) and run the do file that calls the ado it has problems loading the ado. It tells me that a program that is also created in the ado file -but which is not the main program- has already been defined and I get the following error message in brackets "error occurred while loading xx.ado". This surprises me since before creating the program appears the following line:
cap program drop programname
This line should force stata to drop the program with that name before creating it again but for some reason, it doesn't.
So, I tried closing stata, opening it again and running the do-file that calls the ado with its new name and works perfectly fine. I guess this means the problem occured when changing the name of the ado and loading it again. But is there a way of keeping this from happening, that I don't need to restart stata to load the ado-file properly?
Thanks for your help!!
Related Posts with How to modify user-written ado file name without running into loading error
SEM model group analysis not concaveHello there ! I am trying to use Stata and check my SEM model for measurement in-variance among two…
Dummy variable for neonatal Mortality, Infant mortality and Child mortalityHi, I am working on the Demographic health survey (DHS) data. I have to compute the neonatal Mortali…
-margins- after -xtlogit,fe-Dear Statalist This is a question about interpreting the results from a panel data fixed-effects lo…
Loop over multiple arrays via foreachHello together! trying now since a few hours to fix my problem - I am not able to come up with an a…
Destring with many decimal issueHi I am fairly new to Stata, and have searched a lot on my issue but have not yet found a solution.…
Subscribe to:
Post Comments (Atom)
0 Response to How to modify user-written ado file name without running into loading error
Post a Comment