[Gambas-user] R: Form.Show by name as string of form
Stephen
sbungay at ...3301...
Mon Apr 28 11:07:35 CEST 2014
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.
Dim hForm_name_2 As New Form_Name_2
hForm_name_2.Show
End
Steve.
On 04/28/2014 04:17 AM, Ru Vuott wrote:
> ...I would use a Form[ ] variable array, not string.
>
> bye
> vuott
>
>
> --------------------------------------------
> Lun 28/4/14, abbat81<abbat.81 at ...787...> ha scritto:
>
> Oggetto: [Gambas-user] Form.Show by name as string of form
> A: gambas-user at lists.sourceforge.net
> Data: Lunedì 28 Aprile 2014, 09:54
>
> 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 at 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 at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
Kindest Regards
Stephen A. Bungay, Prop.
Smarts On Site
More information about the User
mailing list