About eg.globals...

Do you have questions about writing plugins or scripts in Python? Meet the coders here.

About eg.globals...

Postby krambriw » Sun Jan 13, 2008 9:01 am

Hi,
I have tried to find out if its possible to delete a global from the script once it is created but I cannot find any hint on that.

Like the following;
Creation is simple
eg.global.test = 100

But how to destroy/delete?

eg.global.test.destroy() or similar???

Thanks for any help

Best regards, Walter
krambriw
Plugin Developer
 
Posts: 1151
Joined: Sat Jun 30, 2007 2:51 pm

Re: About eg.globals...

Postby Pako » Sun Jan 13, 2008 11:14 am

krambriw wrote:But how to destroy/delete?
Simply:
Code: Select all
del eg.globals.test
Pako
User avatar
Pako
Plugin Developer
 
Posts: 1283
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic

Re: About eg.globals...

Postby krambriw » Sun Jan 13, 2008 12:10 pm

Pako, thanks a lot

BestR Walter
krambriw
Plugin Developer
 
Posts: 1151
Joined: Sat Jun 30, 2007 2:51 pm


Return to Coding Corner

Who is online

Users browsing this forum: No registered users and 2 guests