Results 1 to 10 of 10

Convert a String Name to Declared Boolean

Threaded View

  1. #1
    Forum Contributor
    Join Date
    12-10-2008
    Location
    Austin
    Posts
    660

    Convert a String Name to Declared Boolean

    Hi all,

    I'm wondering how if possible to convert a string to a Boolean
    For instance, normally someone would use:
    
    Dim continue As Boolean
    continue = True
    
    If continue = True Then MsgBox "Boolean variables are cool"
    However, I'd like to say something like the following.

    
    Dim tocontinue1 As Boolean
    Dim tocontinue2 As Boolean
    
    'choose is only a string that I want to change to represent the tocontinue1 Boolean
    
    choose = "tocontinue1"
    
     If Z = 1 Then choose = True
    If tocontinue1 = True  or Then MsgBox "Boolean variables are cool"
    Any Help is welcome.

    Thanks,

    BDB
    Last edited by bdb1974; 05-16-2012 at 12:05 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1