Re: [Gambas-user] What's the best way to determine how a project was invoked?

2016-01-09 Thread adamn...@gmail.com
On Sat, 9 Jan 2016 22:35:24 +0100
Benoît Minisini  wrote:

> Le 09/01/2016 22:28, adamn...@gmail.com a écrit :
> > We have a set of "tools" that we use with Gambas. They are generally
> > stand alone and are invoked "by hand" and at startup the user selects
> > the Gambas source project to "attach" to. Now I want to provide some
> > integration between them, i.e. allow Tool_B to be invoked from a
> > Tool_A menu or button.  In that case, I want to pass a context, i.e.
> > the source project that is attached in Tool_A.
> >
> > What I want to determine is what's the best way to find out, in
> > Tool_B "how I was invoked".
> >
> > Currently I think that using gb.Args and passing a specific flag
> > option to indicate that has been invoked from another tool (I can
> > test that with Args.Has).
> >
> > But I'm not sure that this is really the "best" way.  Any thoughts?
> >
> > regards bruce
> >
> 
> What's the problem with passing arguments to a program ? There is just a 
> limit on the total size in bytes of the arguments. Run "xargs 
> --show-limits" to get it.
> 
> Regards,
> 
> -- 
> Benoît Minisini
> 
> --
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user

OK, I just had a feeling...

On another tack, the gb.Args Args class help page contains the line:
"Return non-options as arguments."

What does that mean?

regards
bruce
-- 
B Bruen 

--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] What's the best way to determine how a project was invoked?

2016-01-09 Thread Benoît Minisini
Le 09/01/2016 22:51, adamn...@gmail.com a écrit :
>
> On another tack, the gb.Args Args class help page contains the line:
> "Return non-options as arguments."
>
> What does that mean?
>

Bad english of mine... It means that Args.End() will return a string 
array of all arguments that were not interpreted as options or option 
arguments.

-- 
Benoît Minisini

--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] What's the best way to determine how a project was invoked?

2016-01-09 Thread adamn...@gmail.com
On Sat, 9 Jan 2016 22:56:10 +0100
Benoît Minisini  wrote:

> Le 09/01/2016 22:51, adamn...@gmail.com a écrit :
> >
> > On another tack, the gb.Args Args class help page contains the line:
> > "Return non-options as arguments."
> >
> > What does that mean?
> >
> 
> Bad english of mine... It means that Args.End() will return a string 
> array of all arguments that were not interpreted as options or option 
> arguments.
> 
> -- 
> Benoît Minisini
> 
> --
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user

Ah! Of course.
tx
b
-- 
B Bruen 

--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] What's the best way to determine how a project was invoked?

2016-01-09 Thread Benoît Minisini
Le 09/01/2016 22:28, adamn...@gmail.com a écrit :
> We have a set of "tools" that we use with Gambas. They are generally
> stand alone and are invoked "by hand" and at startup the user selects
> the Gambas source project to "attach" to. Now I want to provide some
> integration between them, i.e. allow Tool_B to be invoked from a
> Tool_A menu or button.  In that case, I want to pass a context, i.e.
> the source project that is attached in Tool_A.
>
> What I want to determine is what's the best way to find out, in
> Tool_B "how I was invoked".
>
> Currently I think that using gb.Args and passing a specific flag
> option to indicate that has been invoked from another tool (I can
> test that with Args.Has).
>
> But I'm not sure that this is really the "best" way.  Any thoughts?
>
> regards bruce
>

What's the problem with passing arguments to a program ? There is just a 
limit on the total size in bytes of the arguments. Run "xargs 
--show-limits" to get it.

Regards,

-- 
Benoît Minisini

--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] What's the best way to determine how a project was invoked?

2016-01-09 Thread adamn...@gmail.com
We have a set of "tools" that we use with Gambas. They are generally stand 
alone and are invoked "by hand" and at startup the user selects the Gambas 
source project to "attach" to.
Now I want to provide some integration between them, i.e. allow Tool_B to be 
invoked from a Tool_A menu or button.  In that case, I want to pass a context, 
i.e. the source project that is attached in Tool_A.

What I want to determine is what's the best way to find out, in Tool_B "how I 
was invoked".

Currently I think that using gb.Args and passing a specific flag option to 
indicate that has been invoked from another tool (I can test that with 
Args.Has).

But I'm not sure that this is really the "best" way.  Any thoughts?

regards
bruce

-- 
B Bruen 

--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user