[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scripting



1. The Edit function does not work in windows -- you'll just have to
   pull it up in the windows text editor, but call it .css and not
   .txt.

2. the error means that your environment wasn't properly created --
   look on the line with the .environments.New(1) or some thing like
   that for the likely source of the problem.

gurveen chopra <gchopra@usc.edu> writes:
> Hello!
> 
> I am trying to write scripts for creating environments. I'm running PDP++ (Ver 
> 3.01) on Windows XP. Basically, I'm just trying to follow the demo given in 
> the 2000 edition of the O'Reilly & Munakata book...page# 448, B.5. 
> 
> The tutorial says that a "Text Editor" should pop-up when we click on "Edit" 
> on the script_file. However, nothing comes up when I follow these 
> instructions. So I've created a text (.txt) file of the make_environment 
> script code as given in the tutorial. It compiles just fine. But when I try to 
> "Run" it, I get an error message
> 
> "Index out of range: 0 for  type: Environment_MGroup
> ../CYGWIN/make_env.css
> >22     env = .environments[0]; "
> 
> I have rechecked my code and cannot find any discrepancies from the one given 
> in the demo. I would really appreciate it if someone could help me out.
> 
> Thanks!
> 
> Gurveen

				- Randy