Charlie Reinl a écrit :
> Salut Jean-Yves,
>
> Poseidon the father of gambas, raised gambas-components for that.
> 
> And that is what I do. My programs are compiled as components, so I can
> use them as program, embed then in other programs or just call them from
> an other program.
>
> To unify the args[], all these programs have a String[]Array PROPERTY
> called CallingArgs[] in which I fill at start up the Application.Args. 
> Now I can overwrite it at the caller.
> 
> Here an Example.
> 
> PUBLIC SUB btnPrint_Click()
> DIM args AS String[]
> DIM $TheCalledTwo AS FViewer          
>    IF NOT IsNull($TheCalledTwo) THEN $TheCalledTwo.close()
>    $TheCalledTwo = NEW FViewer  <-- calling the FViewer-Component which
>                               has a Form and can be called 
>    'txtFile.Text
>    TRY $TheCalledTwo.CallingArgs.Clear()
>    args = gettingArgusPreview()
>    $TheCalledTwo.CallingArgs = args <-- filling the args[]
>    $TheCalledTwo.Show             <-- and make visible        
> END
>  
> Have fun
> Charlie

Thanks Charlie, I think I've got my solution

-- 
The most difficult thing about surviving AIDS is trying to convince
your parents that you're Haitian.

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to