Using packages in procedures

Hello,

How can I use a package in one of my procedures?

For example, the "Make Traces Different".
Execute:
DisplayHelpTopic "Packages"


BTW, a handy way to find such things is:
1. Choose Help->Search Igor Files.
2. Uncheck all checkboxes.
3. Check the "Help Files" and "Topics and Subtopics Only" checkboxes.
4. Check the "Igor Pro Folder" checkbox.
5. Enter "Packages" (without quotes) in the Search For edit box.
6. Click Search.
I have already tried the few notes mentioned in the help. I found that "Make Traces Different"
is part of #include .

But then the help is not clear. It asks to write:

Execute/P/Q/Z "INSERTINCLUDE \"Sample Package\""
Execute/P/Q/Z "COMPILEPROCEDURES "

as part of running the package, but this does not work.

EDIT: I figured out that I can use this:

KBColorizeTraces#KBColorTablePopMenuProc("",0,"Rainbow")

It works, but gives an error "attempt to use a null string variable.
ali8 wrote:
but this does not work


If you will provide a precise explanation of what happens I may be able to help.
Hi,

I know it has been a couple of months already, but anyway...

It worked fine with this:

KBColorizeTraces( 0.5,1,0)

The command: KBColorizeTraces#KBColorTablePopMenuProc("",0,"Rainbow") does not work, but not an issue.