--- In [email protected], pi <[EMAIL PROTECTED]> wrote:
>
> i feel like a fool, because i forgot something since the last time i
wrote ppro scripts (6 month).
>
> i have a button on a toolbar for open new notes:
>
> [EMAIL PROTECTED]
>
> @new_menu
>
> nd="C:\\Programme\\PowerPro\\Notes"
> menu.folder(nd, ?|tipall folderdots noext folderback nofiles
explorer nohidden tooltips Maxtext 32 cmd "nn=_file_"
> fileman "new note ..."|)
> if(nn)do
>       pi.debug(nn)
> else
>       pi.debug("no file selected")
> endif
> quit
>
> why is there a result when nothing has been selected ?

Because you're using a global variable nn. Declare at the startup of
the script:
local nn

Sean





Attention: PowerPro's Web site has moved: http://www.ppro.org



SPONSORED LINKS
Computer monitoring software Power pro Computer and internet software
Free computer monitoring software


YAHOO! GROUPS LINKS




Reply via email to