DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: string to form conversion

  1. #1
    Join Date
    Aug 2004
    Posts
    43,023

    string to form conversion

    [Originally posted by Vijay Krishna]

    I want to convert a string (s1) to form object, so that i can say form.show (s1.show) to display the form with the name as in string s1.

  2. #2
    Join Date
    Aug 2004
    Posts
    43,023

    Re:string to form conversion

    [Originally posted by JP Mortiboys]

    <code>
    Function FindFormFromName(sName As String) As Form
    Dim f as Form
    For Each f In Forms
    If f.Name = sName Then ' Use f.Caption if you want the title bat text
    Set FindFormFromName = f
    Exit Function
    End If
    Next
    Set FindFormFromName = Nothing
    End Function
    </code>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center