>I want to put some code in the open tables method. I want it to first open the tables, then run my code. So I put DODEFAULT(), and then my code.
>
>I get an error that the data environment is already loaded. Why would it be trying to do it twice? So, I though, maybe in this case the DODEFAULT() isn't necessary. I took it out. Then it doesn't open the tables at all!
>
>What am I missing? Is there some way to get it to load the tables, just once, and then do my code? Are we not allowed to put code in that method?
>
>Thanks,
>
>Michelle
Michelle,
Open tables then run your code ? or the reverse ?
If open tables then run your code you could simply have your code in init. If reverse you could have your code in load, beforeopentables or even do this in opentables :
*Opentables
nodefault
*Yourcode
dodefault()
Cetin