2 simple questions about SKILL language

Guest
<1> Unload and undefine
After loading a script, how to unload it without exiting icfb?
After defining a variable, how to undefine it without exiting icfb?

<2> Setting cursor
I have a window(2) opening, which is a schematic editor window.
hiSetCursor(window(2) `hicHourglass)
*Error* hiSetCursor: argument #2 should be an integer (type
template = "wx") - hicHourglass
hiSetCursor(window(2) 0)
hiSetCursor(window(2) 2)
hiSetCursor(window(2) 4)
But the cursor shape in this window never changes after I executed
the command each time.
What's the reason? How to use this function?

Thanks.
 
1> Unload and undefine
After loading a script, how to unload it without exiting icfb?
After defining a variable, how to undefine it without exiting icfb?
Unloading a script is not possible as far as I know.

Undefining a variable is done by assigning it the value 'unbound

x = 'unbound

Undefining a function is done by setting its function slot to nil

putd('x nil)

2> Setting cursor
I have a window(2) opening, which is a schematic editor window.
hiSetCursor(window(2) `hicHourglass)
*Error* hiSetCursor: argument #2 should be an integer (type
template = "wx") - hicHourglass
hiSetCursor(window(2) 0)
hiSetCursor(window(2) 2)
hiSetCursor(window(2) 4)
But the cursor shape in this window never changes after I executed
the command each time.
What's the reason? How to use this function?
Probably the application is changing it back. Why do you want to do this anyway ?


Stéphane
 
In article <a71eae80-6404-4942-813e-488d9726d067@s6g2000prc.googlegroups.com> chen_zhitao@yahoo.com writes:
1> Unload and undefine
After loading a script, how to unload it without exiting icfb?
After defining a variable, how to undefine it without exiting icfb?
You cannot "unload" a script. You can change it and load it again, though.

I do not know whether a global symbol can be "undefined" once it has been
defined. You can always set the value to nil, though.

2> Setting cursor
I have a window(2) opening, which is a schematic editor window.
hiSetCursor(window(2) `hicHourglass)
*Error* hiSetCursor: argument #2 should be an integer (type
hicHourglass is a global variable used as a constant, not a symbol. So it
should be:

hiSetCursor(window(2) hicHourglass)

The "c" in hic means no-one should modify it, else things won't work right.

The value of hicHourglass is 14.

-Pete Zakel
(phz@seeheader.nospam)

"What is a magician but a practising theorist?"

-Obi-Wan Kenobi
 

Welcome to EDABoard.com

Sponsor

Back
Top