[Gambas-user] Form with parameters

user demosthenesk at ...626...
Mon Oct 18 17:36:43 CEST 2010


The way i use is to set PUBLIC variables in a Module.
Then before ShowModal i set these variables and read them from the modal
form.

See example Tests.



On Mon, 2010-10-18 at 17:21 +0300, Biro Zoltan wrote:
> HI,
> 
>   Can I make forms with parameters passed from the main form?
> 
> Normally I use the form like this:
> 
>   PUBLIC SUB button1_Click()
>    Childform.showmodal
>   END
> 
> BUT I need to pass some parameters to the child form. How can I do this?
> 
>   PUBLIC SUB button1_Click()
>    Childform(x,y,..etc parameters).showmodal
>   END
> ..or simply I have to use public variables?
> 
> Thank you,
> Zoli B.
> 
> 
> ------------------------------------------------------------------------------
> Download new Adobe(R) Flash(R) Builder(TM) 4
> The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly 
> Flex(R) Builder(TM)) enable the development of rich applications that run
> across multiple browsers and platforms. Download your free trials today!
> http://p.sf.net/sfu/adobe-dev2dev
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Tests.tar.bz2
Type: application/x-bzip-compressed-tar
Size: 9337 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20101018/961152fe/attachment.bin>


More information about the User mailing list