Hello Jussi, I tried your suggestion, but an error-notice is raised:
" Not an object " To use your Collection, I had to modify the code so: Private hMyForms As New Collection hMyForms.Add(Form_name_1,"Form_name_1") hMyForms.Add(Form_name_2,"Form_name_2") hMyForms.Add(Form_name_3,"Form_name_3") Object.Call(hMyForms["Form_name_1"], "Show", Null) Bye vuott -------------------------------------------- Lun 28/4/14, Jussi Lahtinen <jussi.lahti...@gmail.com> ha scritto: Oggetto: Re: [Gambas-user] Form.Show by name as string of form A: "mailing list for gambas users" <gambas-user@lists.sourceforge.net> Data: Lunedì 28 Aprile 2014, 16:43 Private hMyForms As New Collection() hMyForms.Add(Form_name_1,"Form_name_1") hMyForms.Add(Form_name_2,"Form_name_2") hMyForms.Add(Form_name_3,"Form_name_3") ... hMyForms["Form_name_1"].Show() Jussi On Mon, Apr 28, 2014 at 10:54 AM, abbat81 <abbat...@mail.ru> wrote: > Hi, > > I have a four forms in my project: > Form_name_1 > Form_name_2 > Form_name_3 > Form_name_4 > Form_name_5 > > > How can I show a form by name of a form by string. > > Public Sub Button1_Click() > > Dim Form_name As String = "Form_name_2" > > Form_name.Show > > End > > > > -- > View this message in context: > http://gambas.8142.n7.nabble.com/Form-Show-by-name-as-string-of-form-tp46270.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE > Instantly run your Selenium tests across 300+ browser/OS combos. Get > unparalleled scalability from the best Selenium testing platform available. > Simple to use. Nothing to install. Get started now for free." > http://p.sf.net/sfu/SauceLabs > _______________________________________________ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled scalability from the best Selenium testing platform available. Simple to use. Nothing to install. Get started now for free." http://p.sf.net/sfu/SauceLabs _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user ------------------------------------------------------------------------------ "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled scalability from the best Selenium testing platform available. Simple to use. Nothing to install. Get started now for free." http://p.sf.net/sfu/SauceLabs _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user