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

Scripting



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