--- In [email protected], "brucexs" <[EMAIL PROTECTED]> wrote:
>
> > I am trying to build a function that "pushes" a bar item into 
> another
> >  (new) command list, i.e., when one right (or left or selects 
> froma a
> > context menu or whatever) clicks on a item, a new command list is
> > created and the item is moved into the new command list and the old
> > item is modified so that it displays abar/menu based on the new
> > command list. 
> 
> Interesting idea.  You can do something like that with move button 
> on configure dialog, but I understand you may want a direct approach.
> 
> ON thinking about it some more, you should be able to update the pcf 
> you are running from as long as you immediately to a 
> configure.restart, so that PowerPro refreshes its internal memory 
> copy of the pcf from the one on disk.  (Otherwise, there is a risk 
> that PowerPro will overwrite the one on disk with its memory copy, 
> eg if a scheduled event happens).
> 
> In fact, I should probably build that into the command: if 
> configure.writealltopcf goes to own pcf, then restart too.  
> 
> If you are going to overwrite a PCF, I would recommend that you 
> consider taking a backup copy of the pcf, maybe even as part of the 
> script.
> 
> 
> 
> 
> > Here is what I did:
> > 
> > cl.create("clname")
> > cl.insert("clname","clitem")
> > cl.SetLabel("clname","clitem","label")
> > Configure.WriteAllToPCF(pcfname)
> >
> 
> The above worked for me if I added configure.restart at end.
>

Great! I hope that works because my attempts to use a copy operation
to get around the issue isn;t working... mainly because the file
system isn;t going to allow me to copy a file that is already open.

Speaking of which, is there some reason (besides a possible
performance hit) that you keep the pcf file open?

re,
evan







Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to