--- In [email protected], "brucexs" <bswit...@...> wrote:
>
> --- In [email protected], "Sheri" <sherip99@> wrote:
> >
> > Bruce, is there some way Powerpro could include the name of the
> > variable it is complaining about in this error?
> > 
> > Thanks,
> > Sheri
> >
> 
> NOt for now.
> 
> 
> Wrap your current call to regex in a script (which you call from
> *info) and take  a look at allstatics in the script which will at
> least catch statics.

OK, I tried that. Its not a static. 
> 
>  I think the only way you can get this error message is if the local
> or static statement is used outside of a script.  Perhaps the plugin
> is executing one of these?
>

The plugin must be creating a local variable. Too bad there is no
alllocals :O

Externalizing the regex calls to a script eliminates the error. I
changed the menu label to:

*Info expr (.infore...@makelabel)

And here is inforegex.powerpro:

ShowStatics()
quit

Function MakeLabel()
quit("Data -"++regex.pcrematchall(?".+(?=\\$)",
regex.pcrereplace(?"(?i)documents and settings", pprofolder, "..."),
"$0"))

Function ShowStatics()
win.debug(scriptname, "static variables:", allstatics)
quit

Regards,
Sheri


Reply via email to