DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: how set object using var?

  1. #1
    Join Date
    Mar 2008
    Posts
    164

    how set object using var?

    hi,
    i want to this using values from db i using vb6

    dim object_name

    set object_name = command1

    i want load the name "command1" from the db and do something
    like this:

    set object_name = value_from_db

    it this possible?
    thanks a lot for your help

  2. #2
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    Not possible, unless you do something like this:
    Code:
    Select Case object_name
        Case "command1"
            Set command1 = value
        Case "command2"
            Set command2 = value
        ' etc.
    End Select
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

Similar Threads

  1. Replies: 1
    Last Post: 02-29-2008, 09:42 AM
  2. Objects disposed incorrectly
    By Osiris43 in forum .NET
    Replies: 1
    Last Post: 08-04-2006, 12:15 PM
  3. Getting a GUI to run
    By Eric in forum Java
    Replies: 4
    Last Post: 04-14-2006, 09:09 AM
  4. No Backwards Fetching
    By Brian in forum VB Classic
    Replies: 3
    Last Post: 01-07-2001, 06:14 PM
  5. Filesystem object and virtual directories
    By Gene Black in forum Web
    Replies: 2
    Last Post: 07-07-2000, 10:27 AM

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