Re: [Gambas-user] R: Form.Show by name as string of form

2014-04-28 Thread Stephen
Hi; Were you asking me or Ru Vuott? On 04/28/2014 08:27 AM, abbat81 wrote: > Thank you, and > how can I show some of forms. > I have a name of form "form2". > So, how can I call that form2 in your example? > Thanks > > > > -- > View this message in context: > http://gambas.8142.n7.nabble.com/

Re: [Gambas-user] R: Form.Show by name as string of form

2014-04-28 Thread Ru Vuott
If you're referring to my example, you can call, having an array, you can call an its element via usual procedures: arrayForm[index].Show() bye vuott Lun 28/4/14, abbat81 ha scritto: Oggetto: Re: [Gambas-user] R: Form.Show by name as s

Re: [Gambas-user] R: Form.Show by name as string of form

2014-04-28 Thread abbat81
Thank you, and how can I show some of forms. I have a name of form "form2". So, how can I call that form2 in your example? Thanks -- View this message in context: http://gambas.8142.n7.nabble.com/Form-Show-by-name-as-string-of-form-tp46270p46278.html Sent from the gambas-user mailing list archi

Re: [Gambas-user] R: Form.Show by name as string of form

2014-04-28 Thread Stephen
As many instances of Form_Name_2 can be created as you want/need. For example; If we create a single form application (I'll call it FormMain) with only one button on the form (Button1) and the click event of button one looks like this; PUBLIC SUB Button1_Click() DIM hFormMain AS NEW FormMai

Re: [Gambas-user] R: Form.Show by name as string of form

2014-04-28 Thread Ru Vuott
Next End Bye Lun 28/4/14, abbat81 ha scritto: Oggetto: Re: [Gambas-user] R: Form.Show by name as string of form A: gambas-user@lists.sourceforge.net Data: Lunedì 28 Aprile 2014, 10:56 Hi Vuott, can you help me with a little sample? Thanks -- View this message in

Re: [Gambas-user] R: Form.Show by name as string of form

2014-04-28 Thread abbat81
Hi Stephen My forms already exists, so I can't use "As New Form_Name_2" I need to use name of forms -- View this message in context: http://gambas.8142.n7.nabble.com/Form-Show-by-name-as-string-of-form-tp46270p46275.html Sent from the gambas-user mailing list archive at Nabble.com. -

Re: [Gambas-user] R: Form.Show by name as string of form

2014-04-28 Thread Stephen
This will work, it might not be exactly what you had in mind but then this isn't BASIC of old :) Public Sub Button1_Click() ' the 'h' prefix is just my personal style... and is not ' requirement... use whatever you like to differentiate ' the variable from the actual form.

Re: [Gambas-user] R: Form.Show by name as string of form

2014-04-28 Thread abbat81
Hi Vuott, can you help me with a little sample? Thanks -- View this message in context: http://gambas.8142.n7.nabble.com/Form-Show-by-name-as-string-of-form-tp46270p46272.html Sent from the gambas-user mailing list archive at Nabble.com.

[Gambas-user] R: Form.Show by name as string of form

2014-04-28 Thread Ru Vuott
...I would use a Form[ ] variable array, not string. bye vuott Lun 28/4/14, abbat81 ha scritto: Oggetto: [Gambas-user] Form.Show by name as string of form A: gambas-user@lists.sourceforge.net Data: Lunedì 28 Aprile 2014, 09:54 Hi, I have a